From e51d85e078bd0bb2397d72c38384a2bb180fa7ee Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 23 May 2023 14:08:21 +0300 Subject: refactor(tvix/store/digests): clippy useless conversion to the same type: `std::vec::Vec` Change-Id: Idcb16679bb2a3350784965d8d9bbb593c760634e Reviewed-on: https://cl.tvl.fyi/c/depot/+/8615 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: tazjin --- tvix/store/src/digests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvix/store/src/digests.rs b/tvix/store/src/digests.rs index 85664cc166..441a059ee0 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)) } } -- cgit 1.4.1