Commit 95368ee0 authored by Rahix's avatar Rahix 🦀

gamestate: Use is_some() instead of `if let Some(_)`

parent e7e7f565
......@@ -147,7 +147,7 @@ impl EventHandlers {
}
pub fn deregister_all(&mut self) {
if let Some(_) = self.key_handlers {
if self.key_handlers.is_some() {
let body = utils::document().body().unwrap();
body.set_onkeydown(None);
body.set_onkeyup(None);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment