From 47ccebf4863dd58398ba9955e4f14bd31c70b087 Mon Sep 17 00:00:00 2001 From: Garett Cooper Date: Tue, 24 Aug 2021 17:46:53 +0000 Subject: [PATCH] Implement IntoSystemDescriptor for SystemDescriptor (#2718) # Objective - Fixes #2716 ## Solution - Implements the the IntoSystemDescriptor trait for SystemDescriptor, which simply returns itself --- crates/bevy_ecs/src/schedule/system_descriptor.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/bevy_ecs/src/schedule/system_descriptor.rs b/crates/bevy_ecs/src/schedule/system_descriptor.rs index 2caa12c1e7152..74a3963ca26d7 100644 --- a/crates/bevy_ecs/src/schedule/system_descriptor.rs +++ b/crates/bevy_ecs/src/schedule/system_descriptor.rs @@ -60,6 +60,12 @@ where } } +impl IntoSystemDescriptor<()> for SystemDescriptor { + fn into_descriptor(self) -> SystemDescriptor { + self + } +} + impl IntoSystemDescriptor<()> for BoxedSystem<(), ()> { fn into_descriptor(self) -> SystemDescriptor { new_parallel_descriptor(self).into_descriptor()