diff --git a/crates/bevy_app/src/event.rs b/crates/bevy_app/src/event.rs index 4ee13f51b49d7..a2e7f5a5ce99f 100644 --- a/crates/bevy_app/src/event.rs +++ b/crates/bevy_app/src/event.rs @@ -229,7 +229,7 @@ impl Events { } /// Creates a draining iterator that removes all events. - pub fn drain<'a>(&'a mut self) -> impl Iterator + 'a { + pub fn drain(&mut self) -> impl Iterator + '_ { let map = |i: EventInstance| i.event; match self.state { State::A => self