Skip to content

Commit e064c5a

Browse files
jakobhellermannjames7132
authored andcommitted
remove unnecessary unsafe impl of Send+Sync for ParallelSystemContainer (bevyengine#5137)
`ParallelSystemContainer` has no `!Send` or `!Sync` fields, so it doesn't need unsafe impls of these traits.
1 parent 2739c66 commit e064c5a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/bevy_ecs/src/schedule/system_container.rs

-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ pub struct ParallelSystemContainer {
117117
ambiguity_sets: Vec<BoxedAmbiguitySetLabel>,
118118
}
119119

120-
unsafe impl Send for ParallelSystemContainer {}
121-
unsafe impl Sync for ParallelSystemContainer {}
122-
123120
impl ParallelSystemContainer {
124121
pub(crate) fn from_descriptor(descriptor: ParallelSystemDescriptor) -> Self {
125122
ParallelSystemContainer {

0 commit comments

Comments
 (0)