ash-winow: Fix clippy::single-match

This commit is contained in:
Marijn Suijten 2020-09-01 20:26:39 +02:00 committed by Benjamin Saunders
parent 5cb696beb0
commit 00c7eea860

View file

@ -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;
}
}); });
} }