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 ItsDoot committed Feb 1, 2023
1 parent 86fa110 commit bf7046d
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 bf7046d

Please sign in to comment.