Skip to content

Commit

Permalink
Fix Send/Sync impl of RcuCell<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
JOE1994 committed Jan 20, 2021
1 parent 0e4dc8c commit 1faf18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ pub struct RcuCell<T> {
link: LinkWrapper<T>,
}

unsafe impl<T> Send for RcuCell<T> {}
unsafe impl<T> Sync for RcuCell<T> {}
unsafe impl<T: Send> Send for RcuCell<T> {}
unsafe impl<T: Sync> Sync for RcuCell<T> {}

impl<T> Default for RcuCell<T> {
fn default() -> Self {
Expand Down

0 comments on commit 1faf18e

Please sign in to comment.