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:
Christian Hughes 2024-09-17 12:57:22 -05:00 committed by GitHub
parent b884f96598
commit 378dcacf82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) /// Stores configuration for a single generic node (a system or a system set)
/// ///
/// The configuration includes the node itself, scheduling metadata /// 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)] #[doc(hidden)]
pub struct SystemConfigTupleMarker; pub struct SystemConfigTupleMarker;