From 1a5e2f530d1c692567bccbccff154f863dbbb644 Mon Sep 17 00:00:00 2001 From: Mikael Mello Date: Sun, 17 Mar 2024 07:46:11 -0700 Subject: [PATCH] Fix lint warnings --- inquire/src/prompts/action.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/inquire/src/prompts/action.rs b/inquire/src/prompts/action.rs index 907545da..fcb1fab0 100644 --- a/inquire/src/prompts/action.rs +++ b/inquire/src/prompts/action.rs @@ -39,9 +39,7 @@ where Key::Enter | Key::Char('\n', KeyModifiers::NONE) | Key::Char('j', KeyModifiers::CONTROL) => Some(Action::Submit), - Key::Escape - | Key::Char('g', KeyModifiers::CONTROL) - | Key::Char('d', KeyModifiers::CONTROL) => Some(Action::Cancel), + Key::Escape | Key::Char('g' | 'd', KeyModifiers::CONTROL) => Some(Action::Cancel), Key::Char('c', KeyModifiers::CONTROL) => Some(Action::Interrupt), key => I::from_key(key, config).map(Action::Inner), }