Remove unnecessary unsafe

This commit is contained in:
Stjepan Glavina 2020-06-22 18:27:39 +02:00
parent 883366b9b5
commit ccab5ca514
1 changed files with 0 additions and 5 deletions

View File

@ -17,8 +17,6 @@ pub(crate) struct Parker {
unparker: Unparker,
}
unsafe impl Send for Parker {}
impl Parker {
/// Creates a new [`Parker`].
pub fn new() -> Parker {
@ -102,9 +100,6 @@ pub(crate) struct Unparker {
inner: Arc<Inner>,
}
unsafe impl Send for Unparker {}
unsafe impl Sync for Unparker {}
impl Unparker {
/// Atomically makes the token available if it is not already.
pub fn unpark(&self) {