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