refactor(tvix/store/digests): clippy

useless conversion to the same type: `std::vec::Vec<u8>`

Change-Id: Idcb16679bb2a3350784965d8d9bbb593c760634e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8615
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2023-05-23 14:08:21 +03:00 committed by flokli
parent 066179651c
commit e51d85e078

View file

@ -20,7 +20,7 @@ impl B3Digest {
if value.len() != 32 {
Err(Error::InvalidDigestLen(value.len()))
} else {
Ok(Self(Vec::from(value)))
Ok(Self(value))
}
}