diff options
author | Joris | 2022-02-26 22:23:34 +0100 |
---|---|---|
committer | Joris | 2022-02-26 22:23:34 +0100 |
commit | 01a1e5e4f45dc80cd430d18492817b733fab5603 (patch) | |
tree | fa39d7abaf04d9b805a19767c088f7d61eecb509 /src/gui/message.rs | |
parent | 4ff3fa15967d989658804b94e1ce035dfd3e5a5c (diff) |
Fix linter warnings
Diffstat (limited to 'src/gui/message.rs')
-rw-r--r-- | src/gui/message.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/message.rs b/src/gui/message.rs index 28a1d2c..b938150 100644 --- a/src/gui/message.rs +++ b/src/gui/message.rs @@ -33,11 +33,8 @@ pub fn show<B: Backend>( })?; if wait { - if let Event::Input(key) = events.next()? { - match key { - Key::Char('q') => break, - _ => (), - } + if let Event::Input(Key::Char('q')) = events.next()? { + break } } else { break; |