Skip to content

Commit 378dcac

Browse files
authored
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`.
1 parent b884f96 commit 378dcac

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

crates/bevy_ecs/src/schedule/config.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,6 @@ fn ambiguous_with(graph_info: &mut GraphInfo, set: InternedSystemSet) {
3333
}
3434
}
3535

36-
impl<Marker, F> IntoSystemConfigs<Marker> for F
37-
where
38-
F: IntoSystem<(), (), Marker>,
39-
{
40-
fn into_configs(self) -> SystemConfigs {
41-
SystemConfigs::new_system(Box::new(IntoSystem::into_system(self)))
42-
}
43-
}
44-
45-
impl IntoSystemConfigs<()> for BoxedSystem<(), ()> {
46-
fn into_configs(self) -> SystemConfigs {
47-
SystemConfigs::new_system(self)
48-
}
49-
}
50-
5136
/// Stores configuration for a single generic node (a system or a system set)
5237
///
5338
/// The configuration includes the node itself, scheduling metadata
@@ -532,6 +517,21 @@ impl IntoSystemConfigs<()> for SystemConfigs {
532517
}
533518
}
534519

520+
impl<Marker, F> IntoSystemConfigs<Marker> for F
521+
where
522+
F: IntoSystem<(), (), Marker>,
523+
{
524+
fn into_configs(self) -> SystemConfigs {
525+
SystemConfigs::new_system(Box::new(IntoSystem::into_system(self)))
526+
}
527+
}
528+
529+
impl IntoSystemConfigs<()> for BoxedSystem<(), ()> {
530+
fn into_configs(self) -> SystemConfigs {
531+
SystemConfigs::new_system(self)
532+
}
533+
}
534+
535535
#[doc(hidden)]
536536
pub struct SystemConfigTupleMarker;
537537

0 commit comments

Comments
 (0)