about summary refs log tree commit diff
path: root/tvix/eval/src/value
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r--tvix/eval/src/value/list.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs
index 486b0c3fca..3be5d41457 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 {