Skip to content

Commit

Permalink
fix new clippy error (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
cart authored Oct 10, 2020
1 parent 333fd3f commit 1f27d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_app/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl<T: bevy_ecs::Resource> Events<T> {
}

/// Creates a draining iterator that removes all events.
pub fn drain<'a>(&'a mut self) -> impl Iterator<Item = T> + 'a {
pub fn drain(&mut self) -> impl Iterator<Item = T> + '_ {
let map = |i: EventInstance<T>| i.event;
match self.state {
State::A => self
Expand Down

0 comments on commit 1f27d8c

Please sign in to comment.