about summary refs log tree commit diff
path: root/tvix/eval/src
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src')
-rw-r--r--tvix/eval/src/eval.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/tvix/eval/src/eval.rs b/tvix/eval/src/eval.rs
index 9d3f993ba273..04aa93952868 100644
--- a/tvix/eval/src/eval.rs
+++ b/tvix/eval/src/eval.rs
@@ -1,5 +1,4 @@
 use rnix::{self, types::TypedNode};
-use std::fmt::Write;
 
 use crate::errors::EvalResult;
 
@@ -11,14 +10,11 @@ pub fn interpret(code: String) -> EvalResult<String> {
         todo!()
     }
 
-    let mut out = String::new();
     println!("{}", ast.root().dump());
 
     let code = crate::compiler::compile(ast)?;
-    writeln!(out, "code: {:?}", code).ok();
+    println!("code: {:?}", code);
 
     let value = crate::vm::run_chunk(code)?;
-    writeln!(out, "value: {:?}", value).ok();
-
-    Ok(out)
+    Ok(format!("value: {:?}", value))
 }