diff options
author | Florian Klink <flokli@flokli.de> | 2023-05-23T11·08+0300 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-05-23T12·28+0000 |
commit | e51d85e078bd0bb2397d72c38384a2bb180fa7ee (patch) | |
tree | a536ef56d5b629316306b19a1a93b024796bf547 /tvix/store/src | |
parent | 066179651c999e9680edae11817ca4ab42acc1ea (diff) |
refactor(tvix/store/digests): clippy r/6179
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>
Diffstat (limited to 'tvix/store/src')
-rw-r--r-- | tvix/store/src/digests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/store/src/digests.rs b/tvix/store/src/digests.rs index 85664cc1667e..441a059ee0b6 100644 --- a/tvix/store/src/digests.rs +++ b/tvix/store/src/digests.rs @@ -20,7 +20,7 @@ impl B3Digest { if value.len() != 32 { Err(Error::InvalidDigestLen(value.len())) } else { - Ok(Self(Vec::from(value))) + Ok(Self(value)) } } |