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 26, 2023
1 parent 365cf31 commit 13bc45a
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 @@ -281,14 +281,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 = ManualEventIterator<'a, E>;
fn into_iter(self) -> Self::IntoIter {
self.iter()
}
}

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

0 comments on commit 13bc45a

Please sign in to comment.