mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 11:21:30 +11:00
Rust fmt
This commit is contained in:
parent
deb235507f
commit
05cb97aeb0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue