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); }