Remove redundant closure
This commit is contained in:
parent
25e1fc4333
commit
a5328f5b0b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue