We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3202986 commit abe97c0Copy full SHA for abe97c0
src/compat.rs
@@ -49,12 +49,12 @@ pub(crate) struct AllowStd<S> {
49
// read waker slot for this, but any would do.
50
//
51
// Don't ever use this from multiple tasks at the same time!
52
-#[cfg(any(feature = "futures-03-sink", feature = "handshake"))]
+#[cfg(feature = "handshake")]
53
pub(crate) trait SetWaker {
54
fn set_waker(&self, waker: &Waker);
55
}
56
57
58
impl<S> SetWaker for AllowStd<S> {
59
fn set_waker(&self, waker: &Waker) {
60
self.set_waker(ContextWaker::Read, waker);
0 commit comments