From 80b5d53628d8960182cfa92ccd42f3aa0c292b8b Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Sat, 10 Oct 2020 11:56:48 -0700 Subject: [PATCH] fix new clippy error --- crates/bevy_app/src/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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