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:
Dandaedre 2026-10-05 02:41:08 +02:00
parent 9e4f363b0a
commit 68b23e0ff9
1 changed files with 4 additions and 5 deletions

View File

@ -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();
}
}