From 3d407c5530012c127b6ddb663f05872a1c433ee4 Mon Sep 17 00:00:00 2001 From: Mike Hsu Date: Mon, 25 Sep 2023 11:25:50 -0700 Subject: [PATCH] return impl Iterator --- crates/bevy_ecs/src/schedule/schedule.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }