diff --git a/examples/menu.rs b/examples/menu.rs index 772b6ba..bcec08b 100644 --- a/examples/menu.rs +++ b/examples/menu.rs @@ -100,12 +100,10 @@ fn main() { println!("Menu id {} pressed", menu_id); }); - window.get_keys().iter().for_each(|key| { - match key { - Key::W => println!("holding w!"), - Key::T => println!("holding t!"), - _ => (), - } + window.get_keys().iter().for_each(|key| match key { + Key::W => println!("holding w!"), + Key::T => println!("holding t!"), + _ => (), }); // We unwrap here as we want this code to exit if it fails