chore(tvix/store/blobreader): clippy lint

Change-Id: I4c85425782878295277abe6dc91a1b570768f7fa
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8318
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-03-17 00:20:06 +01:00 committed by clbot
parent 530cb920b5
commit 7a966b2540

View file

@ -102,7 +102,10 @@ impl<CS: ChunkService> std::io::Read for BlobReader<'_, CS> {
chunk_meta.digest.clone().try_into().map_err(|_e| { chunk_meta.digest.clone().try_into().map_err(|_e| {
std::io::Error::new( std::io::Error::new(
io::ErrorKind::InvalidData, io::ErrorKind::InvalidData,
format!("chunk in chunkmeta has wrong digest size"), format!(
"chunk in chunkmeta has wrong digest size, expected 32, got {}",
chunk_meta.digest.len(),
),
) )
})?; })?;
match self.chunk_service.get(&chunk_meta_digest) { match self.chunk_service.get(&chunk_meta_digest) {