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 4d93e62 commit b68aaa0Copy full SHA for b68aaa0
src/stream.rs
@@ -1,5 +1,6 @@
1
use futures::stream::Stream;
2
use futures::future::Future;
3
+
4
use core::pin::Pin;
5
use core::iter::IntoIterator;
6
@@ -8,7 +9,7 @@ use pin_utils::pin_mut;
8
9
pub async fn next<St>(stream: &mut St) -> Option<St::Item>
10
where St: Stream + Unpin,
11
{
- use futures::future::poll_fn;
12
+ use crate::future::poll_fn;
13
let poll_next = |waker: &_| Pin::new(&mut *stream).poll_next(waker);
14
let future_next = poll_fn(poll_next);
15
await!(future_next)
0 commit comments