diff options
author | Vincent Ambo <mail@tazj.in> | 2023-11-05T17·31+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-11-05T20·28+0000 |
commit | b3b1f649d613c97a196528b1210dd5b914995c14 (patch) | |
tree | 7ec2a8190c8086325a7962ff74685c88954b91c3 /tvix/eval/src/value/list.rs | |
parent | 67999f0dcf715962b8f56c9bfd8c5c403213cb02 (diff) |
chore(tvix): fix trivial clippy lints r/6955
Relates to b/321. Change-Id: I37284f89b186e469eb432e2bbedb37aa125a6ad4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9961 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/eval/src/value/list.rs')
-rw-r--r-- | tvix/eval/src/value/list.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs index cfaefff82195..627956399399 100644 --- a/tvix/eval/src/value/list.rs +++ b/tvix/eval/src/value/list.rs @@ -59,7 +59,7 @@ impl NixList { stack_slice.len(), ); - NixList(Rc::new(Vector::from_iter(stack_slice.into_iter()))) + NixList(Rc::new(Vector::from_iter(stack_slice))) } pub fn iter(&self) -> vector::Iter<Value> { @@ -76,7 +76,7 @@ impl NixList { #[deprecated(note = "callers should avoid constructing from Vec")] pub fn from_vec(vs: Vec<Value>) -> Self { - Self(Rc::new(Vector::from_iter(vs.into_iter()))) + Self(Rc::new(Vector::from_iter(vs))) } /// Asynchronous sorting algorithm in which the comparator can make use of |