From 36d64aed1cf64ba9711e7128be8491b09389881d Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Thu, 8 Jan 2026 23:40:30 +0100 Subject: [PATCH] bin: Fix clippy warnings --- bin/commands/inbox/list.rs | 6 ++---- bin/commands/patch/list.rs | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bin/commands/inbox/list.rs b/bin/commands/inbox/list.rs index 3a76638a..bccf05af 100644 --- a/bin/commands/inbox/list.rs +++ b/bin/commands/inbox/list.rs @@ -319,10 +319,8 @@ impl Show for App { }, ); - if !show_search { - if ui.has_input(|key| key == Key::Char('?')) { - ui.send_message(Message::Changed(Change::Page { page: Page::Help })); - } + if !show_search && ui.has_input(|key| key == Key::Char('?')) { + ui.send_message(Message::Changed(Change::Page { page: Page::Help })); } } diff --git a/bin/commands/patch/list.rs b/bin/commands/patch/list.rs index d7efd119..7e73c944 100644 --- a/bin/commands/patch/list.rs +++ b/bin/commands/patch/list.rs @@ -274,10 +274,8 @@ impl Show for App { }, ); - if !show_search { - if ui.has_input(|key| key == Key::Char('?')) { - ui.send_message(Message::Changed(Change::Page { page: Page::Help })); - } + if !show_search && ui.has_input(|key| key == Key::Char('?')) { + ui.send_message(Message::Changed(Change::Page { page: Page::Help })); } }