Clippy
This commit is contained in:
parent
e32f27494a
commit
cc004df6e8
3 changed files with 8 additions and 10 deletions
|
|
@ -476,15 +476,14 @@ impl UI {
|
|||
ev: Option<Result<Event, std::io::Error>>,
|
||||
) {
|
||||
match ev {
|
||||
Some(Ok(Event::Key(ev))) => match ev {
|
||||
Some(Ok(Event::Key(
|
||||
KeyEvent { code: KeyCode::Esc, .. }
|
||||
| KeyEvent { code: KeyCode::Char('q'), .. }
|
||||
| KeyEvent { code: KeyCode::Char('?'), .. }
|
||||
| KeyEvent { code: KeyCode::Char('h'), .. } => {
|
||||
self.show_help = false;
|
||||
}
|
||||
_ => (),
|
||||
},
|
||||
| KeyEvent { code: KeyCode::Char('h'), .. },
|
||||
))) => {
|
||||
self.show_help = false;
|
||||
}
|
||||
Some(Ok(_)) => (), // Don't care about this event...
|
||||
Some(Err(_)) => (), // Hmmmmmm.....?
|
||||
None => (), // ....no events? what?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue