Skip to content

Commit

Permalink
make a panic more idiomatic
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJoJet committed Aug 7, 2022
1 parent 5176752 commit 2bf78bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/schedule/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl Schedule {
) -> &mut Self {
let label = label.as_label();
let stage = self.get_stage_mut::<T>(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
Expand Down

0 comments on commit 2bf78bc

Please sign in to comment.