Skip to content

Commit

Permalink
Remove Sync bound from Command (bevyengine#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 authored and james7132 committed Oct 28, 2022
1 parent 297bca9 commit 44a94fd
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 44a94fd

Please sign in to comment.