Skip to content

Commit b6e37f1

Browse files
committed
impl Unpin for UnparkEvents with feature flag
`UnparkEvents` is deprecated, but is still used in some cases.
1 parent 0f8a0b1 commit b6e37f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/task_impl/std/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,9 @@ impl<T> From<Arc<T>> for NotifyHandle
703703

704704
#[cfg(feature = "nightly")]
705705
mod nightly {
706-
use super::TaskUnpark;
706+
use super::{TaskUnpark, UnparkEvents};
707707
use core::marker::Unpin;
708708

709709
impl Unpin for TaskUnpark {}
710+
impl Unpin for UnparkEvents {}
710711
}

0 commit comments

Comments
 (0)