Skip to content

Commit

Permalink
Fix trait bounds in Send/Sync impl: Unordered<T,S>
Browse files Browse the repository at this point in the history
This commit is a follow-up fix for the issue raised in
#8 (comment) .
  • Loading branch information
JOE1994 authored and udoprog committed Jan 24, 2021
1 parent c6a1e16 commit 6a6c367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -377,8 +377,8 @@ where
_marker: marker::PhantomData<S>,
}

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

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

Expand Down

0 comments on commit 6a6c367

Please sign in to comment.