From a22020bf5cc7259274124b60c280d72f234879d2 Mon Sep 17 00:00:00 2001 From: Andrew Safigan Date: Tue, 21 Nov 2023 10:27:29 +0900 Subject: [PATCH] Make impl block for RemovedSystem generic (#10651) # Objective Make the impl block for RemovedSystem generic so that the methods can be called for systems that have inputs or outputs. ## Solution Simply adding generics to the impl block. --- crates/bevy_ecs/src/system/system_registry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/system/system_registry.rs b/crates/bevy_ecs/src/system/system_registry.rs index 21a9f46a84..54e8e6e177 100644 --- a/crates/bevy_ecs/src/system/system_registry.rs +++ b/crates/bevy_ecs/src/system/system_registry.rs @@ -21,7 +21,7 @@ pub struct RemovedSystem { system: BoxedSystem, } -impl RemovedSystem { +impl RemovedSystem { /// Is the system initialized? /// A system is initialized the first time it's ran. pub fn initialized(&self) -> bool { @@ -29,7 +29,7 @@ impl RemovedSystem { } /// The system removed from the storage. - pub fn system(self) -> BoxedSystem { + pub fn system(self) -> BoxedSystem { self.system } }