diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/value/list.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs index 486b0c3fca76..3be5d414572c 100644 --- a/tvix/eval/src/value/list.rs +++ b/tvix/eval/src/value/list.rs @@ -50,10 +50,9 @@ mod arbitrary { impl NixList { pub fn concat(&self, other: &Self) -> Self { - let mut lhs = self.clone(); - let mut rhs = other.clone(); - lhs.0.append(&mut rhs.0); - lhs + let mut ret = self.clone(); + ret.0.extend_from_slice(&other.0); + ret } pub fn len(&self) -> usize { |