about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-09T14·23+0300
committertazjin <tazjin@tvl.su>2022-08-13T18·28+0000
commit72863d81fcf51aed0fd5b4cffd378c30d7fbfb43 (patch)
treea7048fe2b2ae452183eb53516c9f6a045a9a0e72 /tvix
parent910336c68cc5f49317bb1024b11cfaf70666880c (diff)
style(tvix/eval): display `Display` representation of runtime values r/4432
Change-Id: Ifbe05c2da9493c9e132a2d2e94a451d6091542a5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6096
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/eval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/eval.rs b/tvix/eval/src/eval.rs
index 04aa93952868..370aad494dda 100644
--- a/tvix/eval/src/eval.rs
+++ b/tvix/eval/src/eval.rs
@@ -16,5 +16,5 @@ pub fn interpret(code: String) -> EvalResult<String> {
     println!("code: {:?}", code);
 
     let value = crate::vm::run_chunk(code)?;
-    Ok(format!("value: {:?}", value))
+    Ok(format!("value: {} :: {}", value, value.type_of()))
 }