Apply cargo clippy

This commit is contained in:
2022-10-23 03:50:07 +02:00
parent 9f64ebc0f9
commit b1710f7f71
3 changed files with 19 additions and 23 deletions
+4 -5
View File
@@ -235,12 +235,11 @@ fn main() {
// polling and handling the events received by the window
for event in events {
match event {
glutin::event::Event::WindowEvent { event, .. } => match event {
if let glutin::event::Event::WindowEvent { event, .. } = event {
match event {
glutin::event::WindowEvent::CloseRequested => action = support::Action::Stop,
ev => camera.process_input(&ev),
},
_ => (),
ev => camera.process_input(ev),
}
}
}