Skip to content

Commit

Permalink
Remove IntoIterator impl for &mut EventReader
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopap committed Aug 29, 2023
1 parent bc8bf34 commit 574990e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crates/bevy_ecs/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,6 @@ impl<'w, 's, E: Event> EventReader<'w, 's, E> {
}
}

impl<'a, 'w, 's, E: Event> IntoIterator for &'a mut EventReader<'w, 's, E> {
type Item = &'a E;
type IntoIter = EventIterator<'a, E>;
fn into_iter(self) -> Self::IntoIter {
self.iter()
}
}

/// Sends events of type `T`.
///
/// # Usage
Expand Down

0 comments on commit 574990e

Please sign in to comment.