Derive default on ReportExecutionOrderAmbiguities (#4873)

This commit is contained in:
Alex Saveau 2022-05-31 15:54:38 +00:00
parent cea23b9969
commit caef967d14
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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();
}