From dba8769e321bd305a31e949b881eff9fb987fd70 Mon Sep 17 00:00:00 2001 From: urben1680 <55257931+urben1680@users.noreply.github.com> Date: Tue, 8 Aug 2023 08:59:33 +0200 Subject: [PATCH 1/3] added Clone to derived traits of ExcutorKind --- crates/bevy_ecs/src/schedule/executor/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/schedule/executor/mod.rs b/crates/bevy_ecs/src/schedule/executor/mod.rs index 2b2a6c139e46b..6fd187861dcf1 100644 --- a/crates/bevy_ecs/src/schedule/executor/mod.rs +++ b/crates/bevy_ecs/src/schedule/executor/mod.rs @@ -27,7 +27,7 @@ pub(super) trait SystemExecutor: Send + Sync { /// The default depends on the target platform: /// - [`SingleThreaded`](ExecutorKind::SingleThreaded) on WASM. /// - [`MultiThreaded`](ExecutorKind::MultiThreaded) everywhere else. -#[derive(PartialEq, Eq, Default)] +#[derive(PartialEq, Eq, Default, Clone)] pub enum ExecutorKind { /// Runs the schedule using a single thread. /// From 9ea4fcaa0e1cd5fa38a7d2a5f90ad256cfd305f2 Mon Sep 17 00:00:00 2001 From: urben1680 <55257931+urben1680@users.noreply.github.com> Date: Tue, 8 Aug 2023 09:23:18 +0200 Subject: [PATCH 2/3] Added Copy to derived traits of ExecutorKind --- crates/bevy_ecs/src/schedule/executor/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/schedule/executor/mod.rs b/crates/bevy_ecs/src/schedule/executor/mod.rs index 6fd187861dcf1..0a5414b32edd2 100644 --- a/crates/bevy_ecs/src/schedule/executor/mod.rs +++ b/crates/bevy_ecs/src/schedule/executor/mod.rs @@ -27,7 +27,7 @@ pub(super) trait SystemExecutor: Send + Sync { /// The default depends on the target platform: /// - [`SingleThreaded`](ExecutorKind::SingleThreaded) on WASM. /// - [`MultiThreaded`](ExecutorKind::MultiThreaded) everywhere else. -#[derive(PartialEq, Eq, Default, Clone)] +#[derive(PartialEq, Eq, Default, Copy, Clone)] pub enum ExecutorKind { /// Runs the schedule using a single thread. /// From 1dbae488a53e597e195bbb77ffcf825032c4a555 Mon Sep 17 00:00:00 2001 From: urben1680 <55257931+urben1680@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:58:42 +0200 Subject: [PATCH 3/3] Adding `Debug` to derived traits of `ExecutorKind` --- crates/bevy_ecs/src/schedule/executor/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/schedule/executor/mod.rs b/crates/bevy_ecs/src/schedule/executor/mod.rs index 0a5414b32edd2..551ebd448a00d 100644 --- a/crates/bevy_ecs/src/schedule/executor/mod.rs +++ b/crates/bevy_ecs/src/schedule/executor/mod.rs @@ -27,7 +27,7 @@ pub(super) trait SystemExecutor: Send + Sync { /// The default depends on the target platform: /// - [`SingleThreaded`](ExecutorKind::SingleThreaded) on WASM. /// - [`MultiThreaded`](ExecutorKind::MultiThreaded) everywhere else. -#[derive(PartialEq, Eq, Default, Copy, Clone)] +#[derive(PartialEq, Eq, Default, Debug, Copy, Clone)] pub enum ExecutorKind { /// Runs the schedule using a single thread. ///