Skip to content

Commit 8a0f38e

Browse files
committed
fix clippy
1 parent 13b11c9 commit 8a0f38e

File tree

1 file changed

+4
-6
lines changed
  • ash-graphics/ash-graphics/src

1 file changed

+4
-6
lines changed

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)