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 <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2022-08-09 17:23:31 +03:00 committed by tazjin
parent 910336c68c
commit 72863d81fc

View file

@ -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()))
}