Group IntoSystemConfigs impls together (#15254)
				
					
				
			# Objective Two of the `IntoSystemConfigs` `impl`s are out of place near the top of the file. ## Solution Put them below the `IntoSystemConfigs` trait definition, alongside the other `impl`.
This commit is contained in:
		
							parent
							
								
									b884f96598
								
							
						
					
					
						commit
						378dcacf82
					
				| @ -33,21 +33,6 @@ fn ambiguous_with(graph_info: &mut GraphInfo, set: InternedSystemSet) { | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl<Marker, F> IntoSystemConfigs<Marker> for F | ||||
| where | ||||
|     F: IntoSystem<(), (), Marker>, | ||||
| { | ||||
|     fn into_configs(self) -> SystemConfigs { | ||||
|         SystemConfigs::new_system(Box::new(IntoSystem::into_system(self))) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl IntoSystemConfigs<()> for BoxedSystem<(), ()> { | ||||
|     fn into_configs(self) -> SystemConfigs { | ||||
|         SystemConfigs::new_system(self) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| /// Stores configuration for a single generic node (a system or a system set)
 | ||||
| ///
 | ||||
| /// The configuration includes the node itself, scheduling metadata
 | ||||
| @ -532,6 +517,21 @@ impl IntoSystemConfigs<()> for SystemConfigs { | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl<Marker, F> IntoSystemConfigs<Marker> for F | ||||
| where | ||||
|     F: IntoSystem<(), (), Marker>, | ||||
| { | ||||
|     fn into_configs(self) -> SystemConfigs { | ||||
|         SystemConfigs::new_system(Box::new(IntoSystem::into_system(self))) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl IntoSystemConfigs<()> for BoxedSystem<(), ()> { | ||||
|     fn into_configs(self) -> SystemConfigs { | ||||
|         SystemConfigs::new_system(self) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| #[doc(hidden)] | ||||
| pub struct SystemConfigTupleMarker; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Christian Hughes
						Christian Hughes