about summary refs log tree commit diff
path: root/tvix/cli
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/cli')
-rw-r--r--tvix/cli/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/cli/src/main.rs b/tvix/cli/src/main.rs
index 1c148cad3873..75142d620c6d 100644
--- a/tvix/cli/src/main.rs
+++ b/tvix/cli/src/main.rs
@@ -20,10 +20,10 @@ struct Args {
 /// and the result itself. The return value indicates whether
 /// evaluation succeeded.
 fn interpret(code: &str, path: Option<PathBuf>) -> bool {
-    let mut eval = tvix_eval::Evaluation::new(code, path);
+    let eval = tvix_eval::Evaluation::new(code, path);
+    let source_map = eval.source_map();
     let result = eval.evaluate();
 
-    let source_map = eval.source_map();
     for error in &result.errors {
         error.fancy_format_stderr(&source_map);
     }