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
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 {