From c478a9fc526828d7d05c7e6189126b47ec4b8122 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 6 Aug 2020 01:09:46 +0000 Subject: Fix clippy issues Co-authored-by: Kirill Chibisov --- alacritty/src/event.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'alacritty/src/event.rs') diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index 85dca0ee..9e6dde16 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -1017,18 +1017,18 @@ impl Processor { /// Check if an event is irrelevant and can be skipped. fn skip_event(event: &GlutinEvent) -> bool { match event { - GlutinEvent::WindowEvent { event, .. } => match event { + GlutinEvent::WindowEvent { event, .. } => matches!( + event, WindowEvent::KeyboardInput { is_synthetic: true, .. } - | WindowEvent::TouchpadPressure { .. } - | WindowEvent::CursorEntered { .. } - | WindowEvent::AxisMotion { .. } - | WindowEvent::HoveredFileCancelled - | WindowEvent::Destroyed - | WindowEvent::HoveredFile(_) - | WindowEvent::Touch(_) - | WindowEvent::Moved(_) => true, - _ => false, - }, + | WindowEvent::TouchpadPressure { .. } + | WindowEvent::CursorEntered { .. } + | WindowEvent::AxisMotion { .. } + | WindowEvent::HoveredFileCancelled + | WindowEvent::Destroyed + | WindowEvent::HoveredFile(_) + | WindowEvent::Touch(_) + | WindowEvent::Moved(_) + ), GlutinEvent::Suspended { .. } | GlutinEvent::NewEvents { .. } | GlutinEvent::MainEventsCleared -- cgit