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;
|
let mut running = true;
|
||||||
while running {
|
while running {
|
||||||
events_loop.poll_events(|event| match event {
|
events_loop.poll_events(|event| {
|
||||||
winit::Event::WindowEvent {
|
if let winit::Event::WindowEvent {
|
||||||
event: winit::WindowEvent::CloseRequested,
|
event: winit::WindowEvent::CloseRequested,
|
||||||
..
|
..
|
||||||
} => running = false,
|
} = event
|
||||||
_ => (),
|
{
|
||||||
|
running = false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue