mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Group IntoSystemConfigs
impl
s 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
1 changed files with 15 additions and 15 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue