Skip to content

Commit f5b6f5e

Browse files
committed
Implement Sync for ArrayParts
1 parent 8ff477f commit f5b6f5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,8 @@ struct ArrayParts<A, D, T: ?Sized>
13221322
_dst_control: T,
13231323
}
13241324

1325+
unsafe impl<A, D, T: ?Sized> Sync for ArrayParts<A, D, T> where A: Sync {}
1326+
13251327
type ArrayPartsSized<A, D> = ArrayParts<A, D, [usize; 0]>;
13261328
type ArrayPartsUnsized<A, D> = ArrayParts<A, D, [usize]>;
13271329

0 commit comments

Comments
 (0)