From 3671056640dc2dfe339bbb044c7bccca2ada9901 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 10 Aug 2022 19:30:19 +0300 Subject: fix(tvix/value): align Display representation with Nix 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 --- tvix/eval/src/value/attrs.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tvix/eval/src') 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("}") -- cgit 1.4.1