diff --git a/src/stream/stream/fold.rs b/src/stream/stream/fold.rs index 0e3dd674..91a1c8c8 100644 --- a/src/stream/stream/fold.rs +++ b/src/stream/stream/fold.rs @@ -2,6 +2,7 @@ use std::marker::PhantomData; use std::pin::Pin; use crate::future::Future; +use crate::stream::Stream; use crate::task::{Context, Poll}; #[doc(hidden)] @@ -30,7 +31,7 @@ impl FoldFuture { impl Future for FoldFuture where - S: futures_core::stream::Stream + Unpin + Sized, + S: Stream + Unpin + Sized, F: FnMut(B, S::Item) -> B, { type Output = B;