refactor(tvix/store): clippy

Change-Id: Ib41c766a45e7d5467a4e5e90e1c00b009121959a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8238
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2023-03-10 12:22:57 +01:00 committed by clbot
parent 6d3f5b7eb4
commit d2b353e516

View file

@ -28,7 +28,7 @@ impl ChunkService for MemoryChunkService {
None => Ok(None), None => Ok(None),
Some(data) => { Some(data) => {
// calculate the hash to verify this is really what we expect // calculate the hash to verify this is really what we expect
let actual_digest = blake3::hash(&data).as_bytes().to_vec(); let actual_digest = blake3::hash(data).as_bytes().to_vec();
if actual_digest != digest { if actual_digest != digest {
return Err(Error::StorageError(format!( return Err(Error::StorageError(format!(
"invalid hash encountered when reading chunk, expected {}, got {}", "invalid hash encountered when reading chunk, expected {}, got {}",