Skip to content

Commit

Permalink
Remove Sync bound from Command (#5871)
Browse files Browse the repository at this point in the history
Unless I'm mistaken it is unnecessary, Commands are never accessed from two threads simultaneously. It unnecessarily restricts Command structs
  • Loading branch information
Demiu committed Sep 27, 2022
1 parent 128c169 commit 263ab94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/system/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 263ab94

Please sign in to comment.