mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Fix clippy lint
This commit is contained in:
@@ -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:
|
// Things that may require repaint:
|
||||||
WindowEvent::CloseRequested => EventResponse {
|
WindowEvent::CloseRequested => EventResponse {
|
||||||
consumed: true,
|
consumed: true,
|
||||||
repaint: true,
|
repaint: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
WindowEvent::CursorEntered { .. }
|
WindowEvent::RedrawRequested
|
||||||
|
| WindowEvent::CursorEntered { .. }
|
||||||
| WindowEvent::Destroyed
|
| WindowEvent::Destroyed
|
||||||
| WindowEvent::Occluded(_)
|
| WindowEvent::Occluded(_)
|
||||||
| WindowEvent::Resized(_)
|
| WindowEvent::Resized(_)
|
||||||
@@ -436,7 +427,8 @@ impl State {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Things we completely ignore:
|
// Things we completely ignore:
|
||||||
WindowEvent::AxisMotion { .. }
|
WindowEvent::ActivationTokenDone { .. }
|
||||||
|
| WindowEvent::AxisMotion { .. }
|
||||||
| WindowEvent::SmartMagnify { .. }
|
| WindowEvent::SmartMagnify { .. }
|
||||||
| WindowEvent::TouchpadRotate { .. } => EventResponse {
|
| WindowEvent::TouchpadRotate { .. } => EventResponse {
|
||||||
repaint: false,
|
repaint: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user