2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-28 23:29:41 +00:00

fixes after #145

This commit is contained in:
Fedor Sakharov 2019-09-11 22:07:20 +03:00
parent 774550ca99
commit 6c3f8af62d
No known key found for this signature in database
GPG key ID: 93D436E666BF0FEE

View file

@ -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<S, F, T, B> FoldFuture<S, F, T, B> {
impl<S, F, B> Future for FoldFuture<S, F, S::Item, B>
where
S: futures_core::stream::Stream + Unpin + Sized,
S: Stream + Unpin + Sized,
F: FnMut(B, S::Item) -> B,
{
type Output = B;