We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b29ac commit a3ceeacCopy full SHA for a3ceeac
src/stream.rs
@@ -6,8 +6,7 @@ pub async fn next<St>(stream: &mut St) -> Option<St::Item>
6
where St: Stream + Unpin,
7
{
8
use futures::future::poll_fn;
9
- use futures::task::Waker;
10
- let poll_next = |waker: &Waker| Pin::new(&mut *stream).poll_next(waker);
+ let poll_next = |waker: &_| Pin::new(&mut *stream).poll_next(waker);
11
let future_next = poll_fn(poll_next);
12
await!(future_next)
13
}
0 commit comments