mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 06:30:19 +00:00
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:
parent
128c169503
commit
263ab9424d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue