From 05cb97aeb0b625b96f1a8eb59ec7844fcb84a1c3 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sat, 23 Oct 2021 11:40:04 +0200 Subject: [PATCH] Rust fmt --- examples/menu.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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