diff options
author | Vincent Ambo <mail@tazj.in> | 2022-08-11T15·34+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-08-26T15·06+0000 |
commit | f331874aeb6ed528d667f8737d1d0b1c6f6f61cf (patch) | |
tree | 50a63dfcdfc0609d8328947b26af7f23af241c81 /tvix/eval/src/value/mod.rs | |
parent | dd8f5f1dc8e314b1908d90620f69efed2b284072 (diff) |
chore(tvix/eval): implement improved Display for internal values r/4497
Having these visible more explicitly is useful while debugging. Change-Id: I86b497883063d32792b635eb4514b7aeae484af4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6164 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'tvix/eval/src/value/mod.rs')
-rw-r--r-- | tvix/eval/src/value/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index 99eb4c657ba5..355678fb7496 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -116,7 +116,8 @@ impl Display for Value { )), // internal types - Value::AttrPath(_) | Value::Blackhole => f.write_str("internal"), + Value::AttrPath(_) => f.write_str("internal<attrpath>"), + Value::Blackhole => f.write_str("internal<blackhole>"), } } } |