From 2a892ef5116999d17c7e87e4f915219d45bf1219 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 10 Feb 2024 08:38:19 +0400 Subject: input: Fix Clippy warning --- src/input.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/input.rs') 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 { -- cgit