From 72863d81fcf51aed0fd5b4cffd378c30d7fbfb43 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 9 Aug 2022 17:23:31 +0300 Subject: style(tvix/eval): display `Display` representation of runtime values Change-Id: Ifbe05c2da9493c9e132a2d2e94a451d6091542a5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6096 Tested-by: BuildkiteCI Reviewed-by: grfn --- tvix/eval/src/eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { println!("code: {:?}", code); let value = crate::vm::run_chunk(code)?; - Ok(format!("value: {:?}", value)) + Ok(format!("value: {} :: {}", value, value.type_of())) } -- cgit 1.4.1