Skip to content

Commit 6a6c367

Browse files
JOE1994udoprog
authored andcommitted
Fix trait bounds in Send/Sync impl: Unordered<T,S>
This commit is a follow-up fix for the issue raised in #8 (comment) .
1 parent c6a1e16 commit 6a6c367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ where
377377
_marker: marker::PhantomData<S>,
378378
}
379379

380-
unsafe impl<T, S> Send for Unordered<T, S> where S: Send + Sentinel {}
381-
unsafe impl<T, S> Sync for Unordered<T, S> where S: Sync + Sentinel {}
380+
unsafe impl<T: Send, S> Send for Unordered<T, S> where S: Sentinel {}
381+
unsafe impl<T: Sync, S> Sync for Unordered<T, S> where S: Sentinel {}
382382

383383
impl<T, S> Unpin for Unordered<T, S> where S: Sentinel {}
384384

0 commit comments

Comments
 (0)