diff --git a/crates/bevy_ecs/src/schedule/mod.rs b/crates/bevy_ecs/src/schedule/mod.rs index 7fd51ad02ffa3f..bffe9a5e491390 100644 --- a/crates/bevy_ecs/src/schedule/mod.rs +++ b/crates/bevy_ecs/src/schedule/mod.rs @@ -284,7 +284,7 @@ impl Schedule { ) -> &mut Self { let label = label.as_label(); let stage = self.get_stage_mut::(label).unwrap_or_else(move || { - panic!("stage '{:?}' does not exist or is the wrong type", label) + panic!("stage '{label:?}' does not exist or is the wrong type") }); func(stage); self