From 58ba87ca62455d99fdc7df9f086bba7ab90e89a6 Mon Sep 17 00:00:00 2001 From: Arjun Nair Date: Mon, 16 Sep 2024 11:39:53 +0530 Subject: [PATCH] Fix annoying clippy warning on CI runner. --- src/lib.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 08ea8d0..32a980a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -170,14 +170,11 @@ pub fn input_to_egui( return; } match event { - // handle when window Resized and SizeChanged. - Window { win_event, .. } => match win_event { - WindowEvent::Resized(_, _) | sdl2::event::WindowEvent::SizeChanged(_, _) => { - painter.update_screen_rect(window.drawable_size()); - state.input.screen_rect = Some(painter.screen_rect); - } - _ => (), - }, + // Handle when window Resized and SizeChanged. + Window { win_event: WindowEvent::Resized(_, _) | WindowEvent::SizeChanged(_, _), .. } => { + painter.update_screen_rect(window.drawable_size()); + state.input.screen_rect = Some(painter.screen_rect); + } //MouseButonLeft pressed is the only one needed by egui MouseButtonDown { mouse_btn, .. } => {