Skip to content

Commit

Permalink
Fix annoying clippy warning on CI runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjunNair committed Sep 16, 2024
1 parent 9a1ab38 commit 58ba87c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, .. } => {
Expand Down

0 comments on commit 58ba87c

Please sign in to comment.