mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Derive default on ReportExecutionOrderAmbiguities (#4873)
This commit is contained in:
parent
cea23b9969
commit
caef967d14
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue