diff --git a/renrs/src/lib.rs b/renrs/src/lib.rs index df4fabd..5be83e7 100644 --- a/renrs/src/lib.rs +++ b/renrs/src/lib.rs @@ -21,7 +21,7 @@ impl State { pub fn next(&mut self) -> Option { while let Some(command) = self.next_command() { let event = command.execute(); - if event.as_ref().map_or(false, |event| event.is_blocking()) { + if let Some(_) = event { return event; } } diff --git a/renrs/src/parser/event.rs b/renrs/src/parser/event.rs index 2ed22d0..53abb11 100644 --- a/renrs/src/parser/event.rs +++ b/renrs/src/parser/event.rs @@ -11,13 +11,6 @@ pub enum Event { } impl Event { - pub fn is_blocking(&self) -> bool { - use Event::*; - match self { - Say { .. } => true, - } - } - pub fn process(mut self, context: &Rc>) -> Self { use Event::*; match &mut self {