Skip to content

Commit

Permalink
style: fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmJSD committed Aug 9, 2024
1 parent ef99a47 commit c476e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ fn test_parse_hotkey() {

// Ensure that if it is just multiple modifiers, we do not panic.
// This would be a regression if this happened.
if let Ok(_) = HotKey::from_str("Shift+Ctrl") {
if HotKey::from_str("Shift+Ctrl").is_ok() {
panic!("This is not a valid hotkey");
}
}
Expand Down

0 comments on commit c476e23

Please sign in to comment.