Skip to content

Commit

Permalink
send/sync fix to prevent misuse
Browse files Browse the repository at this point in the history
  • Loading branch information
JOE1994 committed Jan 23, 2021
1 parent 5abe752 commit 34c2b9e
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 @@ -89,8 +89,8 @@ impl<T: Sized> Drop for AtomicBox<T> {
}
}

unsafe impl<T: Sized> Sync for AtomicBox<T> {}
unsafe impl<T: Sized> Send for AtomicBox<T> {}
unsafe impl<T: Sized + Sync> Sync for AtomicBox<T> {}
unsafe impl<T: Sized + Send> Send for AtomicBox<T> {}

#[cfg(test)]
mod tests {
Expand Down

0 comments on commit 34c2b9e

Please sign in to comment.