about summary refs log tree commit diff
path: root/tvix/eval/src/observer.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-04T15·53+0300
committertazjin <tazjin@tvl.su>2022-09-09T21·10+0000
commitcbf2d2d29293af56d60fa7e04ee1969c18b9845f (patch)
tree2958af3ff31f27791632956641c5f6bcec6d72a1 /tvix/eval/src/observer.rs
parent3cf5c402091d1e10c26fddf6764f572495f38899 (diff)
refactor(tvix/eval): move `disassemble_op` to the Chunk structure r/4777
Change-Id: Ic6710c609ed647bfa47d673aaf22c4da96c0f319
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6451
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/observer.rs')
-rw-r--r--tvix/eval/src/observer.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tvix/eval/src/observer.rs b/tvix/eval/src/observer.rs
index 5aeb344ee954..62312a74ad36 100644
--- a/tvix/eval/src/observer.rs
+++ b/tvix/eval/src/observer.rs
@@ -10,7 +10,6 @@ use std::rc::Rc;
 use tabwriter::TabWriter;
 
 use crate::chunk::Chunk;
-use crate::disassembler::disassemble_op;
 use crate::opcode::CodeIdx;
 use crate::value::Lambda;
 
@@ -72,7 +71,7 @@ impl<W: Write> DisassemblingObserver<W> {
         let width = format!("{:#x}", chunk.code.len() - 1).len();
 
         for (idx, _) in chunk.code.iter().enumerate() {
-            disassemble_op(&mut self.writer, &self.codemap, chunk, width, CodeIdx(idx));
+            let _ = chunk.disassemble_op(&mut self.writer, &self.codemap, width, CodeIdx(idx));
         }
     }
 }