enable unnecessary_to_owned lint

*facepalm*
This commit is contained in:
Charles Hall 2024-05-21 22:12:42 -07:00
parent 7e7911abcf
commit 13de9ecd41
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 1 additions and 3 deletions

View file

@ -72,8 +72,6 @@ wildcard_dependencies = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
unnecessary_to_owned = "allow"
[package]
name = "grapevine"
description = "A Matrix homeserver written in Rust"

View file

@ -124,7 +124,7 @@ impl KeyValueDatabaseEngine for Arc<Engine> {
);
// Remove `&& !created_already` when the above is addressed
if !self.old_cfs.contains(&name.to_owned()) && !created_already {
if !self.old_cfs.contains(name) && !created_already {
// Create if it didn't exist
self.rocks
.create_cf(name, &db_options(self.max_open_files, &self.cache))