From 140225ed219fcaa549aa48d1a5215222958d26e1 Mon Sep 17 00:00:00 2001 From: devil-ira Date: Sun, 5 Feb 2023 12:57:36 +0100 Subject: [PATCH] Fix merge issues --- crates/bevy_ecs/src/world/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/bevy_ecs/src/world/mod.rs b/crates/bevy_ecs/src/world/mod.rs index 0001a754bb60d..981accba96f87 100644 --- a/crates/bevy_ecs/src/world/mod.rs +++ b/crates/bevy_ecs/src/world/mod.rs @@ -772,7 +772,7 @@ impl World { /// Returns an iterator of entities that had components of type `T` removed /// since the last call to [`World::clear_trackers`]. - pub fn removed(&self) -> impl DoubleEndedIterator + '_ { + pub fn removed(&self) -> impl Iterator + '_ { self.components .get_id(TypeId::of::()) .map(|component_id| self.removed_with_id(component_id)) @@ -782,10 +782,7 @@ impl World { /// Returns an iterator of entities that had components with the given `component_id` removed /// since the last call to [`World::clear_trackers`]. - pub fn removed_with_id( - &self, - component_id: ComponentId, - ) -> impl DoubleEndedIterator + '_ { + pub fn removed_with_id(&self, component_id: ComponentId) -> impl Iterator + '_ { self.removed_components .get(component_id) .map(|removed| removed.iter_current_update_events().cloned())