about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-10T16·30+0300
committertazjin <tazjin@tvl.su>2022-08-24T23·11+0000
commit3671056640dc2dfe339bbb044c7bccca2ada9901 (patch)
tree8914ec3514f09caaa1b9d96966d1d4a610f088bb
parentc75fa365cdcfb2ca283da6e35dbe6ace229e2366 (diff)
fix(tvix/value): align Display representation with Nix r/4466
Displaying the optimised representation is not useful anymore.

Change-Id: Icb962ff8865ec4207c144fbcb1aae87483b0fb7c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6131
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
-rw-r--r--tvix/eval/src/value/attrs.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs
index d04e01bf7eab..51f4795c59eb 100644
--- a/tvix/eval/src/value/attrs.rs
+++ b/tvix/eval/src/value/attrs.rs
@@ -30,9 +30,8 @@ impl Display for NixAttrs {
 
         match self {
             NixAttrs::KV { name, value } => {
-                f.write_fmt(format_args!("name = \"{}\"; ", name))?;
+                f.write_fmt(format_args!("name = {}; ", name))?;
                 f.write_fmt(format_args!("value = {}; ", value))?;
-                f.write_str("/* optimised pair! */")?;
             }
 
             NixAttrs::Map(map) => {
@@ -41,10 +40,7 @@ impl Display for NixAttrs {
                 }
             }
 
-            NixAttrs::Empty => {
-                /* no values to print! */
-                f.write_str("/* optimised empty set! */")?;
-            }
+            NixAttrs::Empty => { /* no values to print! */ }
         }
 
         f.write_str("}")