Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelmello committed Mar 17, 2024
1 parent fdd89ad commit 1a5e2f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions inquire/src/prompts/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 1a5e2f5

Please sign in to comment.