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
This commit is contained in:
Demiu 2022-09-27 18:34:33 +00:00
parent 128c169503
commit 263ab9424d

View file

@ -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);
}