summaryrefslogtreecommitdiff
path: root/src/event_loop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event_loop.rs')
-rw-r--r--src/event_loop.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/event_loop.rs b/src/event_loop.rs
index 02b7a5e5..9f02118f 100644
--- a/src/event_loop.rs
+++ b/src/event_loop.rs
@@ -90,9 +90,8 @@ impl event::Notify for Notifier {
if bytes.len() == 0 {
return
}
- match self.0.send(Msg::Input(bytes)) {
- Ok(_) => (),
- Err(_) => panic!("expected send event loop msg"),
+ if self.0.send(Msg::Input(bytes)).is_err() {
+ panic!("expected send event loop msg");
}
}
}