about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/value/attrs.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs
index 1658d69c7ee7..e2ebc7cb344a 100644
--- a/tvix/eval/src/value/attrs.rs
+++ b/tvix/eval/src/value/attrs.rs
@@ -11,7 +11,7 @@ use super::Value;
 #[derive(Debug)]
 pub enum NixAttrs {
     Map(BTreeMap<NixString, Value>),
-    KV { name: NixString, value: Value },
+    KV { name: Value, value: Value },
 }
 
 impl Display for NixAttrs {
@@ -22,6 +22,7 @@ impl Display for NixAttrs {
             NixAttrs::KV { name, value } => {
                 f.write_fmt(format_args!("name = \"{}\"; ", name))?;
                 f.write_fmt(format_args!("value = {}; ", value))?;
+                f.write_str("/* optimised pair! */")?;
             }
 
             NixAttrs::Map(map) => {