mirror of https://github.com/stjepang/smol
Remove unnecessary unsafe
This commit is contained in:
parent
883366b9b5
commit
ccab5ca514
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue