Skip to content

Commit 040c931

Browse files
committed
Fix CI failure
1 parent 8a106a4 commit 040c931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/debug/stepping.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Adapted from https://github.com/bevyengine/bevy/blob/main/examples/games/stepping.rs
1+
//! Adapted from <https://github.com/bevyengine/bevy/blob/main/examples/games/stepping.rs>.
22
33
use bevy::app::MainScheduleOrder;
44
use bevy::ecs::schedule::*;
@@ -115,7 +115,7 @@ fn is_stepping_initialized(ctx: Res<SteppingContext>) -> bool {
115115
}
116116

117117
/// Returns true if a system should be ignored by stepping and always run.
118-
fn should_always_run(system: &Box<dyn System<In = (), Out = ()>>) -> bool {
118+
fn should_always_run(system: &dyn System<In = (), Out = ()>) -> bool {
119119
let name = system.name();
120120
name.starts_with("bevy") || name.starts_with("Pipe") || name.starts_with("avian2d")
121121
}
@@ -146,7 +146,7 @@ fn build_stepping_ui(
146146
));
147147

148148
for (node_id, system) in cq!(schedules.get(label).and_then(|x| x.systems().ok())) {
149-
if should_always_run(system) {
149+
if should_always_run(system.as_ref()) {
150150
always_run.push((label, node_id));
151151
continue;
152152
}

0 commit comments

Comments
 (0)