forge
Explore
Log in

Don't you dare go Hollow

input: Fix Clippy warning

Browse files at this commit

2a892ef5116999d17c7e87e4f915219d45bf1219Ivan MolodetskikhParent: 90c6721
src/input.rsmodified+4 -4
@@ -1527,10 +1527,10 @@ fn should_hide_exit_confirm_dialog<I: InputBackend>(event: &InputEvent<I>) -> bo
15271527 }
15281528
15291529 fn should_notify_activity<I: InputBackend>(event: &InputEvent<I>) -> bool {
1530- match event {
1531- InputEvent::DeviceAdded { .. } | InputEvent::DeviceRemoved { .. } => false,
1532- _ => true,
1533- }
1530+ !matches!(
1531+ event,
1532+ InputEvent::DeviceAdded { .. } | InputEvent::DeviceRemoved { .. }
1533+ )
15341534 }
15351535
15361536 fn allowed_when_locked(action: &Action) -> bool {