input: Fix Clippy warning
Browse files at this commit2a892ef5116999d17c7e87e4f915219d45bf1219Parent: 90c67211 changed file +4 -4
- src/input.rs +4 -4
src/input.rsmodified+4 -4
| @@ -1527,10 +1527,10 @@ fn should_hide_exit_confirm_dialog<I: InputBackend>(event: &InputEvent<I>) -> bo | |||
| 1527 | } | 1527 | } |
| 1528 | 1528 | ||
| 1529 | fn should_notify_activity<I: InputBackend>(event: &InputEvent<I>) -> bool { | 1529 | fn should_notify_activity<I: InputBackend>(event: &InputEvent<I>) -> bool { |
| 1530 | - match event { | 1530 | + !matches!( |
| 1531 | - InputEvent::DeviceAdded { .. } | InputEvent::DeviceRemoved { .. } => false, | 1531 | + event, |
| 1532 | - _ => true, | 1532 | + InputEvent::DeviceAdded { .. } | InputEvent::DeviceRemoved { .. } |
| 1533 | - } | 1533 | + ) |
| 1534 | } | 1534 | } |
| 1535 | 1535 | ||
| 1536 | fn allowed_when_locked(action: &Action) -> bool { | 1536 | fn allowed_when_locked(action: &Action) -> bool { |