From 2bf78bccfef843326463de7a676e9cce17bc079c Mon Sep 17 00:00:00 2001 From: JoJoJet Date: Sun, 7 Aug 2022 02:35:45 -0400 Subject: [PATCH] make a panic more idiomatic --- crates/bevy_ecs/src/schedule/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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