diff options
Diffstat (limited to 'tvix/eval/src/observer.rs')
-rw-r--r-- | tvix/eval/src/observer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/eval/src/observer.rs b/tvix/eval/src/observer.rs index a606eb136362..cdc6ca16ff97 100644 --- a/tvix/eval/src/observer.rs +++ b/tvix/eval/src/observer.rs @@ -11,7 +11,7 @@ use std::rc::Rc; use tabwriter::TabWriter; use crate::chunk::Chunk; -use crate::generators::GeneratorRequest; +use crate::generators::VMRequest; use crate::opcode::{CodeIdx, OpCode}; use crate::value::Lambda; use crate::SourceCode; @@ -58,7 +58,7 @@ pub trait RuntimeObserver { fn observe_suspend_generator(&mut self, _frame_at: usize, _name: &str, _stack: &[Value]) {} /// Called when a generator requests an action from the VM. - fn observe_generator_request(&mut self, _name: &str, _msg: &GeneratorRequest) {} + fn observe_generator_request(&mut self, _name: &str, _msg: &VMRequest) {} /// Called when the runtime replaces the current call frame for a /// tail call. @@ -249,7 +249,7 @@ impl<W: Write> RuntimeObserver for TracingObserver<W> { self.write_stack(stack); } - fn observe_generator_request(&mut self, name: &str, msg: &GeneratorRequest) { + fn observe_generator_request(&mut self, name: &str, msg: &VMRequest) { let _ = writeln!( &mut self.writer, "=== generator '{}' requested {} ===", |