Remove redundant closure

This commit is contained in:
zaubentrucker 2025-02-21 23:59:03 +01:00
parent 25e1fc4333
commit a5328f5b0b

View file

@ -67,7 +67,7 @@ impl Gamepad {
fn get_next(&mut self) -> Option<GamepadEvent> {
self.gilrs
.next_event()
.and_then(|event| Self::map_event(event))
.and_then(Self::map_event)
}
/// Get all `GamepadEvent`s since the last call