From 263ab9424d741e20624c5ed92210ae263de1d2d0 Mon Sep 17 00:00:00 2001 From: Demiu Date: Tue, 27 Sep 2022 18:34:33 +0000 Subject: [PATCH] Remove Sync bound from Command (#5871) Unless I'm mistaken it is unnecessary, Commands are never accessed from two threads simultaneously. It unnecessarily restricts Command structs --- crates/bevy_ecs/src/system/commands/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/system/commands/mod.rs b/crates/bevy_ecs/src/system/commands/mod.rs index 5448f1bc6e2c0..6064cf70cb79c 100644 --- a/crates/bevy_ecs/src/system/commands/mod.rs +++ b/crates/bevy_ecs/src/system/commands/mod.rs @@ -40,7 +40,7 @@ use super::Resource; /// commands.add(AddToCounter(42)); /// } /// ``` -pub trait Command: Send + Sync + 'static { +pub trait Command: Send + 'static { fn write(self, world: &mut World); }