diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-01-06 01:42:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-06 01:42:55 +0000 |
commit | 2920cbe7103f03a45080bfb7610bd7f481f36361 (patch) | |
tree | 4839deca8a54d8e2546d124eb26178fd1eac4d4a /src/event_loop.rs | |
parent | 650b5a0cbaccc6de2b53240372c2be79739d5d12 (diff) | |
download | alacritty-2920cbe7103f03a45080bfb7610bd7f481f36361.tar.gz alacritty-2920cbe7103f03a45080bfb7610bd7f481f36361.zip |
Add clippy check to travis
This commit adds clippy as a required step of the build process. To make
this possible, all existing clippy issues have been resolved.
Diffstat (limited to 'src/event_loop.rs')
-rw-r--r-- | src/event_loop.rs | 5 |
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"); } } } |