Skip to content

Commit

Permalink
return impl Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
hymm committed Sep 26, 2023
1 parent a2db340 commit 3d407c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/schedule/schedule.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{
collections::{btree_set::Iter, BTreeSet},
collections::BTreeSet,
fmt::{Debug, Write},
result::Result,
};
Expand Down Expand Up @@ -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<Item = &ComponentId> + '_ {
self.0.iter()
}

Expand Down

0 comments on commit 3d407c5

Please sign in to comment.