Fix for cargo clippy

This commit is contained in:
Dave Gallant
2022-11-11 00:05:07 -05:00
parent 3040253baa
commit e8de02a54a

View File

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