From e8de02a54ab5a5d5b791b2eeef638f5054d59df3 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Fri, 11 Nov 2022 00:05:07 -0500 Subject: [PATCH] Fix for cargo clippy --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index be5afc5..38c6cd3 100644 --- a/src/db.rs +++ b/src/db.rs @@ -19,7 +19,7 @@ pub fn hash_exists(hash: &str, config: sled::Config) -> bool { pub fn insert(hash: &str, config: sled::Config) { let tree = config.open().unwrap(); - let result = tree.insert(&hash, ""); + let result = tree.insert(hash, ""); if result.is_err() { error!("{:?}", &result); }