mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31: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);
|
println!("Menu id {} pressed", menu_id);
|
||||||
});
|
});
|
||||||
|
|
||||||
window.get_keys().iter().for_each(|key| {
|
window.get_keys().iter().for_each(|key| match key {
|
||||||
match key {
|
|
||||||
Key::W => println!("holding w!"),
|
Key::W => println!("holding w!"),
|
||||||
Key::T => println!("holding t!"),
|
Key::T => println!("holding t!"),
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// We unwrap here as we want this code to exit if it fails
|
// We unwrap here as we want this code to exit if it fails
|
||||||
|
|
Loading…
Reference in a new issue