Skip to content

Commit 978f7cd

Browse files
Remove unused test resource in a bevy_ecs schedule unit test (bevyengine#7551)
Small commit to remove an unused resource scoped within a single bevy_ecs unit test. Also rearranged the initialization to follow initialization conventions of surrounding tests. World/Schedule initialization followed by resource initialization. This change was tested locally with `cargo test`, and `cargo fmt` was run. Risk should be tiny as change is scoped to a single unit test and very tiny, and I can't see any way that this resource is being used in the test. Thank you so much!
1 parent f0fc9e9 commit 978f7cd

File tree

1 file changed

+2
-4
lines changed
  • crates/bevy_ecs/src/schedule

1 file changed

+2
-4
lines changed

crates/bevy_ecs/src/schedule/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,11 @@ mod tests {
175175

176176
#[test]
177177
fn add_systems_correct_order() {
178-
#[derive(Resource)]
179-
struct X(Vec<TestSet>);
180-
181178
let mut world = World::new();
179+
let mut schedule = Schedule::new();
180+
182181
world.init_resource::<SystemOrder>();
183182

184-
let mut schedule = Schedule::new();
185183
schedule.add_systems(
186184
(
187185
make_function_system(0),

0 commit comments

Comments
 (0)