diff options
Diffstat (limited to 'tvix/eval/src')
-rw-r--r-- | tvix/eval/src/value/attrs.rs | 4 |
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() } |