about summary refs log tree commit diff
path: root/tvix/store/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-06-09T15·35+0300
committerflokli <flokli@flokli.de>2023-06-12T10·28+0000
commit38a7caaada826ebdbc9db3a9042ab1bf2099472b (patch)
tree2cd7beafccd1ef31dfb78da3cd8e9a7e212b5d09 /tvix/store/src
parentaa7bdc1199bfbb69091dda942a82812257e30bc4 (diff)
refactor(tvix/store/blobsvc/sled): cargo clippy r/6274
Change-Id: I00b8b567509d5e0847270f36dadb5dcb534b9b73
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8739
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src')
-rw-r--r--tvix/store/src/blobservice/sled.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/store/src/blobservice/sled.rs b/tvix/store/src/blobservice/sled.rs
index 3b130fcd9a05..3f212142b9d1 100644
--- a/tvix/store/src/blobservice/sled.rs
+++ b/tvix/store/src/blobservice/sled.rs
@@ -112,7 +112,7 @@ impl BlobWriter for SledBlobWriter {
             let digest = B3Digest::from_vec(hasher.finalize().as_bytes().to_vec()).unwrap();
 
             // Only insert if the blob doesn't already exist.
-            if !self.db.contains_key(&digest.to_vec()).map_err(|e| {
+            if !self.db.contains_key(digest.to_vec()).map_err(|e| {
                 Error::StorageError(format!("Unable to check if we have blob {}: {}", digest, e))
             })? {
                 // put buf in there. This will move buf out.