aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input.rs b/src/input.rs
index 2ebbf434..5bcc9a18 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -1527,10 +1527,10 @@ fn should_hide_exit_confirm_dialog<I: InputBackend>(event: &InputEvent<I>) -> bo
}
fn should_notify_activity<I: InputBackend>(event: &InputEvent<I>) -> bool {
- match event {
- InputEvent::DeviceAdded { .. } | InputEvent::DeviceRemoved { .. } => false,
- _ => true,
- }
+ !matches!(
+ event,
+ InputEvent::DeviceAdded { .. } | InputEvent::DeviceRemoved { .. }
+ )
}
fn allowed_when_locked(action: &Action) -> bool {