Fix clippy lints
This commit is contained in:
parent
a90b1fba89
commit
780af771fa
2 changed files with 30 additions and 35 deletions
|
|
@ -721,8 +721,7 @@ async fn run_instance<A, E, C>(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
match window_event {
|
if let winit::event::WindowEvent::KeyboardInput {
|
||||||
winit::event::WindowEvent::KeyboardInput {
|
|
||||||
event:
|
event:
|
||||||
winit::event::KeyEvent {
|
winit::event::KeyEvent {
|
||||||
logical_key:
|
logical_key:
|
||||||
|
|
@ -734,11 +733,10 @@ async fn run_instance<A, E, C>(
|
||||||
..
|
..
|
||||||
},
|
},
|
||||||
..
|
..
|
||||||
} => {
|
} = &window_event
|
||||||
|
{
|
||||||
crate::debug::toggle_comet();
|
crate::debug::toggle_comet();
|
||||||
}
|
}
|
||||||
_ => {}
|
|
||||||
}
|
|
||||||
|
|
||||||
state.update(&window, &window_event);
|
state.update(&window, &window_event);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -781,25 +781,22 @@ async fn run_instance<A, E, C>(
|
||||||
window_id,
|
window_id,
|
||||||
} => {
|
} => {
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
match window_event {
|
if let winit::event::WindowEvent::KeyboardInput {
|
||||||
winit::event::WindowEvent::KeyboardInput {
|
|
||||||
event:
|
event:
|
||||||
winit::event::KeyEvent {
|
winit::event::KeyEvent {
|
||||||
logical_key:
|
logical_key:
|
||||||
winit::keyboard::Key::Named(
|
winit::keyboard::Key::Named(
|
||||||
winit::keyboard::NamedKey::F12,
|
winit::keyboard::NamedKey::F12,
|
||||||
),
|
),
|
||||||
state:
|
state: winit::event::ElementState::Pressed,
|
||||||
winit::event::ElementState::Pressed,
|
|
||||||
repeat: false,
|
repeat: false,
|
||||||
..
|
..
|
||||||
},
|
},
|
||||||
..
|
..
|
||||||
} => {
|
} = &window_event
|
||||||
|
{
|
||||||
crate::debug::toggle_comet();
|
crate::debug::toggle_comet();
|
||||||
}
|
}
|
||||||
_ => {}
|
|
||||||
}
|
|
||||||
|
|
||||||
let Some((id, window)) =
|
let Some((id, window)) =
|
||||||
window_manager.get_mut_alias(window_id)
|
window_manager.get_mut_alias(window_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue