diff --git a/crates/bevy_ecs/src/schedule/schedule.rs b/crates/bevy_ecs/src/schedule/schedule.rs index 752a3ec20388a..85253a2ee77c5 100644 --- a/crates/bevy_ecs/src/schedule/schedule.rs +++ b/crates/bevy_ecs/src/schedule/schedule.rs @@ -1,5 +1,5 @@ use std::{ - collections::{btree_set::Iter, BTreeSet}, + collections::BTreeSet, fmt::{Debug, Write}, result::Result, }; @@ -1749,7 +1749,7 @@ impl IgnoredSchedulingAmbiguities { } /// Iterate through the [`ComponentId`]'s that will be ignored. - pub fn iter(&self) -> Iter<'_, ComponentId> { + pub fn iter(&self) -> impl Iterator + '_ { self.0.iter() }