From 6c3f8af62d2b6899aa16867164a48b5c4184f27c Mon Sep 17 00:00:00 2001 From: Fedor Sakharov Date: Wed, 11 Sep 2019 22:07:20 +0300 Subject: [PATCH] fixes after #145 --- src/stream/stream/fold.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;