Remove unused test resource in a bevy_ecs schedule unit test (#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!
This commit is contained in:
		
							parent
							
								
									f0fc9e9700
								
							
						
					
					
						commit
						978f7cd8bf
					
				| @ -175,13 +175,11 @@ mod tests { | |||||||
| 
 | 
 | ||||||
|         #[test] |         #[test] | ||||||
|         fn add_systems_correct_order() { |         fn add_systems_correct_order() { | ||||||
|             #[derive(Resource)] |  | ||||||
|             struct X(Vec<TestSet>); |  | ||||||
| 
 |  | ||||||
|             let mut world = World::new(); |             let mut world = World::new(); | ||||||
|  |             let mut schedule = Schedule::new(); | ||||||
|  | 
 | ||||||
|             world.init_resource::<SystemOrder>(); |             world.init_resource::<SystemOrder>(); | ||||||
| 
 | 
 | ||||||
|             let mut schedule = Schedule::new(); |  | ||||||
|             schedule.add_systems( |             schedule.add_systems( | ||||||
|                 ( |                 ( | ||||||
|                     make_function_system(0), |                     make_function_system(0), | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Andrew Jakubowicz
						Andrew Jakubowicz