forked from mirror/async-std
Fixed ambiguous associated types
This commit is contained in:
parent
e36172e808
commit
d7afcada76
1 changed files with 2 additions and 2 deletions
|
@ -153,10 +153,10 @@ extension_trait! {
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||||
#[cfg(any(feature = "unstable", feature = "docs"))]
|
#[cfg(any(feature = "unstable", feature = "docs"))]
|
||||||
fn flatten(self) -> FlattenFuture<Self, <Self::Output as IntoFuture>::Future>
|
fn flatten(self) -> impl Future<Output = <<Self as Future>::Output as IntoFuture>::Output> [FlattenFuture<Self, <<Self as Future>::Output as IntoFuture>::Future>]
|
||||||
where
|
where
|
||||||
Self: Future + Sized,
|
Self: Future + Sized,
|
||||||
Self::Output: IntoFuture
|
<Self as Future>::Output: IntoFuture
|
||||||
{
|
{
|
||||||
FlattenFuture::new(self)
|
FlattenFuture::new(self)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue