Skip to content

Commit

Permalink
use remove instead of remove_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
hymm committed Aug 28, 2023
1 parent 3af69b7 commit 930380a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1770,9 +1770,9 @@ impl World {
f: impl FnOnce(&mut World, &mut Schedule) -> R,
) -> Result<R, TryRunScheduleError> {
let label = label.as_ref();
let Some((_, mut schedule)) = self
let Some(mut schedule) = self
.get_resource_mut::<Schedules>()
.and_then(|mut s| s.remove_entry(label))
.and_then(|mut s| s.remove(label))
else {
return Err(TryRunScheduleError(label.dyn_clone()));
};
Expand Down

0 comments on commit 930380a

Please sign in to comment.