Skip to content

Commit

Permalink
Derive default on ReportExecutionOrderAmbiguities (bevyengine#4873)
Browse files Browse the repository at this point in the history
  • Loading branch information
SUPERCILEX authored and ItsDoot committed Feb 1, 2023
1 parent 076affd commit aa13bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/bevy_ecs/src/schedule/stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ impl_downcast!(Stage);
///
/// The checker may report a system more times than the amount of constraints it would actually need
/// to have unambiguous order with regards to a group of already-constrained systems.
#[derive(Default)]
pub struct ReportExecutionOrderAmbiguities;

/// Stores and executes systems. Execution order is not defined unless explicitly specified;
Expand Down
2 changes: 1 addition & 1 deletion examples/ecs/ecs_guide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ fn main() {
// Be aware that not everything reported by this checker is a potential problem, you'll have
// to make that judgement yourself.
.add_plugin(LogPlugin::default())
.insert_resource(ReportExecutionOrderAmbiguities)
.init_resource::<ReportExecutionOrderAmbiguities>()
// This call to run() starts the app we just built!
.run();
}

0 comments on commit aa13bfd

Please sign in to comment.