refactor(tvix/store/blobsvc/sled): cargo clippy

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
This commit is contained in:
Florian Klink 2023-06-09 18:35:15 +03:00 committed by flokli
parent aa7bdc1199
commit 38a7caaada

View file

@ -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.