about summary refs log tree commit diff
path: root/tvix/eval/src/value/attrs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/value/attrs.rs')
-rw-r--r--tvix/eval/src/value/attrs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs
index bbff79fc0d1a..fffd316cbfa2 100644
--- a/tvix/eval/src/value/attrs.rs
+++ b/tvix/eval/src/value/attrs.rs
@@ -39,8 +39,8 @@ impl AttrsRep {
 
             AttrsRep::KV { name, value } => {
                 *self = AttrsRep::Map(BTreeMap::from([
-                    (NixString::NAME, std::mem::replace(name, Value::Blackhole)),
-                    (NixString::VALUE, std::mem::replace(value, Value::Blackhole)),
+                    (NixString::NAME, name.clone()),
+                    (NixString::VALUE, value.clone()),
                 ]));
                 self.map_mut()
             }