From c6f0704f0017535a8f98a50a302dc5908a7f18e2 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 27 Nov 2023 17:44:29 +0100 Subject: [PATCH] Fix clippy lint --- crates/egui-winit/src/lib.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index 8a081fd22..ffc1e247e 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -408,23 +408,14 @@ impl State { } } - winit::event::WindowEvent::RedrawRequested => EventResponse { - repaint: true, - consumed: false, - }, - - winit::event::WindowEvent::ActivationTokenDone { .. } => EventResponse { - repaint: false, - consumed: false, - }, - // Things that may require repaint: WindowEvent::CloseRequested => EventResponse { consumed: true, repaint: true, }, - WindowEvent::CursorEntered { .. } + WindowEvent::RedrawRequested + | WindowEvent::CursorEntered { .. } | WindowEvent::Destroyed | WindowEvent::Occluded(_) | WindowEvent::Resized(_) @@ -436,7 +427,8 @@ impl State { }, // Things we completely ignore: - WindowEvent::AxisMotion { .. } + WindowEvent::ActivationTokenDone { .. } + | WindowEvent::AxisMotion { .. } | WindowEvent::SmartMagnify { .. } | WindowEvent::TouchpadRotate { .. } => EventResponse { repaint: false,