ash-winow: Fix clippy::single-match
This commit is contained in:
parent
5cb696beb0
commit
00c7eea860
|
@ -35,12 +35,14 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
|
||||
let mut running = true;
|
||||
while running {
|
||||
events_loop.poll_events(|event| match event {
|
||||
winit::Event::WindowEvent {
|
||||
events_loop.poll_events(|event| {
|
||||
if let winit::Event::WindowEvent {
|
||||
event: winit::WindowEvent::CloseRequested,
|
||||
..
|
||||
} => running = false,
|
||||
_ => (),
|
||||
} = event
|
||||
{
|
||||
running = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue