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:
parent
066179651c
commit
e51d85e078
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ impl B3Digest {
|
|||
if value.len() != 32 {
|
||||
Err(Error::InvalidDigestLen(value.len()))
|
||||
} else {
|
||||
Ok(Self(Vec::from(value)))
|
||||
Ok(Self(value))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue