From 38a7caaada826ebdbc9db3a9042ab1bf2099472b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 9 Jun 2023 18:35:15 +0300 Subject: refactor(tvix/store/blobsvc/sled): cargo clippy Change-Id: I00b8b567509d5e0847270f36dadb5dcb534b9b73 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8739 Reviewed-by: tazjin Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/store/src/blobservice/sled.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/store/src') 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. -- cgit 1.4.1