Skip to content

Commit 294a414

Browse files
committed
fix clippy
1 parent f79516e commit 294a414

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

  • ash-graphics/ash-graphics/src

ash-graphics/ash-graphics/src/main.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,17 @@ pub fn main() -> anyhow::Result<()> {
134134
WindowEvent::KeyboardInput {
135135
event:
136136
winit::event::KeyEvent {
137-
logical_key: winit::keyboard::Key::Named(key),
137+
logical_key:
138+
winit::keyboard::Key::Named(winit::keyboard::NamedKey::Escape),
138139
state: winit::event::ElementState::Pressed,
139140
..
140141
},
141142
..
142-
} => match key {
143-
winit::keyboard::NamedKey::Escape => event_loop_window_target.exit(),
144-
_ => {}
145-
},
143+
}
144+
| WindowEvent::CloseRequested => event_loop_window_target.exit(),
146145
WindowEvent::Resized(_) => {
147146
swapchain.should_recreate();
148147
}
149-
WindowEvent::CloseRequested => event_loop_window_target.exit(),
150148
_ => {}
151149
}
152150

0 commit comments

Comments
 (0)