Fix clippy lints

This commit is contained in:
Héctor Ramón Jiménez 2024-05-14 20:13:55 +02:00
parent a90b1fba89
commit 780af771fa
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F
2 changed files with 30 additions and 35 deletions

View file

@ -721,8 +721,7 @@ async fn run_instance<A, E, C>(
}
#[cfg(feature = "debug")]
match window_event {
winit::event::WindowEvent::KeyboardInput {
if let winit::event::WindowEvent::KeyboardInput {
event:
winit::event::KeyEvent {
logical_key:
@ -734,11 +733,10 @@ async fn run_instance<A, E, C>(
..
},
..
} => {
} = &window_event
{
crate::debug::toggle_comet();
}
_ => {}
}
state.update(&window, &window_event);

View file

@ -781,25 +781,22 @@ async fn run_instance<A, E, C>(
window_id,
} => {
#[cfg(feature = "debug")]
match window_event {
winit::event::WindowEvent::KeyboardInput {
if let winit::event::WindowEvent::KeyboardInput {
event:
winit::event::KeyEvent {
logical_key:
winit::keyboard::Key::Named(
winit::keyboard::NamedKey::F12,
),
state:
winit::event::ElementState::Pressed,
state: winit::event::ElementState::Pressed,
repeat: false,
..
},
..
} => {
} = &window_event
{
crate::debug::toggle_comet();
}
_ => {}
}
let Some((id, window)) =
window_manager.get_mut_alias(window_id)