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(event: &InputEvent) -> bo } fn should_notify_activity(event: &InputEvent) -> bool { - match event { - InputEvent::DeviceAdded { .. } | InputEvent::DeviceRemoved { .. } => false, - _ => true, - } + !matches!( + event, + InputEvent::DeviceAdded { .. } | InputEvent::DeviceRemoved { .. } + ) } fn allowed_when_locked(action: &Action) -> bool {