diff --git a/src/input.rs b/src/input.rs index 5c8ecf4..2d0aeb6 100644 --- a/src/input.rs +++ b/src/input.rs @@ -19,7 +19,7 @@ impl Iterator for Keys { match self.iter.next() { Some(Ok(Event::Key(k))) => return Some(Ok(k)), Some(Ok(_)) => continue, - e @ Some(Err(_)) => e, + Some(Err(e)) => return Some(Err(e)), None => return None, }; }