From caef967d149abad9410bbc6a10654383094272ae Mon Sep 17 00:00:00 2001 From: Alex Saveau Date: Tue, 31 May 2022 15:54:38 +0000 Subject: [PATCH] Derive default on ReportExecutionOrderAmbiguities (#4873) --- crates/bevy_ecs/src/schedule/stage.rs | 1 + examples/ecs/ecs_guide.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/schedule/stage.rs b/crates/bevy_ecs/src/schedule/stage.rs index f92cb2d818e85..ff26ced892a6f 100644 --- a/crates/bevy_ecs/src/schedule/stage.rs +++ b/crates/bevy_ecs/src/schedule/stage.rs @@ -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; diff --git a/examples/ecs/ecs_guide.rs b/examples/ecs/ecs_guide.rs index b27ed06f57094..4bc0d527263ee 100644 --- a/examples/ecs/ecs_guide.rs +++ b/examples/ecs/ecs_guide.rs @@ -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::() // This call to run() starts the app we just built! .run(); }