diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-10 08:38:19 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-10 08:38:19 +0400 |
| commit | 2a892ef5116999d17c7e87e4f915219d45bf1219 (patch) | |
| tree | 7ab75a2086428cf28e7a874d38b8174cccb8fd5c /src/input.rs | |
| parent | 90c6721e97561dce023095693ea713bf8b69ea7d (diff) | |
| download | niri-2a892ef5116999d17c7e87e4f915219d45bf1219.tar.gz niri-2a892ef5116999d17c7e87e4f915219d45bf1219.tar.bz2 niri-2a892ef5116999d17c7e87e4f915219d45bf1219.zip | |
input: Fix Clippy warning
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 8 |
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 { |
