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:
parent
530cb920b5
commit
7a966b2540
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue