mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
enable unnecessary_to_owned lint
*facepalm*
This commit is contained in:
parent
7e7911abcf
commit
13de9ecd41
2 changed files with 1 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue