forked from mirror/async-std
fixes after #145
This commit is contained in:
parent
774550ca99
commit
6c3f8af62d
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ use std::marker::PhantomData;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|
||||||
use crate::future::Future;
|
use crate::future::Future;
|
||||||
|
use crate::stream::Stream;
|
||||||
use crate::task::{Context, Poll};
|
use crate::task::{Context, Poll};
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[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>
|
impl<S, F, B> Future for FoldFuture<S, F, S::Item, B>
|
||||||
where
|
where
|
||||||
S: futures_core::stream::Stream + Unpin + Sized,
|
S: Stream + Unpin + Sized,
|
||||||
F: FnMut(B, S::Item) -> B,
|
F: FnMut(B, S::Item) -> B,
|
||||||
{
|
{
|
||||||
type Output = B;
|
type Output = B;
|
||||||
|
|
Loading…
Reference in a new issue