refactor(tui): satisfy strict Clippy lint
Replace the single-pattern key-event match with if let while preserving quit behavior and the planned navigation notes. Validation: cargo test --workspace --all-targets --all-features; cargo clippy --workspace --all-targets --all-features -- -D warnings.
This commit is contained in:
parent
9e4f363b0a
commit
68b23e0ff9
|
|
@ -54,11 +54,10 @@ impl Tui {
|
|||
}
|
||||
|
||||
fn handle_key_event(&mut self, key_event: KeyEvent) {
|
||||
match key_event.code {
|
||||
KeyCode::Char('q') => self.exit(),
|
||||
// KeyCode::Left => self.decrement_counter(),
|
||||
// KeyCode::Right => self.increment_counter(),
|
||||
_ => {}
|
||||
// KeyCode::Left => self.decrement_counter(),
|
||||
// KeyCode::Right => self.increment_counter(),
|
||||
if let KeyCode::Char('q') = key_event.code {
|
||||
self.exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue