Skip to content

Commit

Permalink
Relax FnMut to FnOnce in app::edit_schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
nakedible committed Jun 28, 2023
1 parent 910f984 commit de4448c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ impl App {
pub fn edit_schedule(
&mut self,
label: impl ScheduleLabel,
mut f: impl FnMut(&mut Schedule),
mut f: impl FnOnce(&mut Schedule),
) -> &mut Self {
let mut schedules = self.world.resource_mut::<Schedules>();

Expand Down

0 comments on commit de4448c

Please sign in to comment.