aboutsummaryrefslogtreecommitdiff
path: root/src/app/input/mod.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-09 23:16:24 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-09 23:16:24 +0300
commit9f210e973834700d14c6c0283ed750ed5b038e8b (patch)
treecd8c75755c59fdc47bf71ca6dc34e49ab0258ae6 /src/app/input/mod.rs
parent3a9888cd564dc45d23a7bdd0dba29a6ff1ef48a1 (diff)
chore: enable clippy linting
Diffstat (limited to 'src/app/input/mod.rs')
-rw-r--r--src/app/input/mod.rs21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs
index 56ad09a9..aa607c78 100644
--- a/src/app/input/mod.rs
+++ b/src/app/input/mod.rs
@@ -92,10 +92,13 @@ impl App {
pub(crate) fn handle_onboarding_key(&mut self, key: KeyEvent) {
match key.code {
KeyCode::Right | KeyCode::Char('l') => self.open_settings_from_onboarding(),
- _ => match modal_action_from_key(&key, ONBOARDING_WELCOME_ACTIONS) {
- Some(ModalAction::Continue) => self.open_settings_from_onboarding(),
- _ => {}
- },
+ _ => {
+ if let Some(ModalAction::Continue) =
+ modal_action_from_key(&key, ONBOARDING_WELCOME_ACTIONS)
+ {
+ self.open_settings_from_onboarding();
+ }
+ }
}
}
@@ -116,10 +119,12 @@ impl App {
notes.scroll = max_scroll;
}
}
- _ => match modal_action_from_key(&key, RELEASE_NOTES_ACTIONS) {
- Some(ModalAction::Close) => self.dismiss_release_notes(),
- _ => {}
- },
+ _ => {
+ if let Some(ModalAction::Close) = modal_action_from_key(&key, RELEASE_NOTES_ACTIONS)
+ {
+ self.dismiss_release_notes();
+ }
+ }
}
}