Skip to content

Commit caef967

Browse files
committed
Derive default on ReportExecutionOrderAmbiguities (#4873)
1 parent cea23b9 commit caef967

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/bevy_ecs/src/schedule/stage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl_downcast!(Stage);
4747
///
4848
/// The checker may report a system more times than the amount of constraints it would actually need
4949
/// to have unambiguous order with regards to a group of already-constrained systems.
50+
#[derive(Default)]
5051
pub struct ReportExecutionOrderAmbiguities;
5152

5253
/// Stores and executes systems. Execution order is not defined unless explicitly specified;

examples/ecs/ecs_guide.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ fn main() {
334334
// Be aware that not everything reported by this checker is a potential problem, you'll have
335335
// to make that judgement yourself.
336336
.add_plugin(LogPlugin::default())
337-
.insert_resource(ReportExecutionOrderAmbiguities)
337+
.init_resource::<ReportExecutionOrderAmbiguities>()
338338
// This call to run() starts the app we just built!
339339
.run();
340340
}

0 commit comments

Comments
 (0)