diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-15 03:50:30 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-15 03:50:30 -0400 |
commit | 54d8c730a6e7dfc2661fb6c819e50f1215bbd992 (patch) | |
tree | 42206a031633c765f10f3c538c99c42452fcdc39 | |
parent | 405c0d50b20b8a35bd279aa32bdeb6e061d210de (diff) | |
download | teleterm-54d8c730a6e7dfc2661fb6c819e50f1215bbd992.tar.gz teleterm-54d8c730a6e7dfc2661fb6c819e50f1215bbd992.zip |
allow clippy::single_match everywhere
-rw-r--r-- | src/cmd/watch.rs | 2 | ||||
-rw-r--r-- | src/main.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/watch.rs b/src/cmd/watch.rs index 6c69b14..6ec3c4d 100644 --- a/src/cmd/watch.rs +++ b/src/cmd/watch.rs @@ -210,7 +210,6 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> &mut self, e: &crossterm::InputEvent, ) -> Result<bool> { - #[allow(clippy::single_match)] match e { crossterm::InputEvent::Keyboard(crossterm::KeyEvent::Char( 'q', @@ -343,7 +342,6 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> } fn watch_keypress(&mut self, e: &crossterm::InputEvent) -> Result<bool> { - #[allow(clippy::single_match)] match e { crossterm::InputEvent::Keyboard(crossterm::KeyEvent::Char( 'q', diff --git a/src/main.rs b/src/main.rs index a45aced..5d528bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ #![allow(clippy::match_same_arms)] #![allow(clippy::missing_const_for_fn)] #![allow(clippy::similar_names)] +#![allow(clippy::single_match)] #![allow(clippy::single_match_else)] #![allow(clippy::type_complexity)] |