@@ -19,18 +19,16 @@ enum ElemState<T> where T: Future {
19
19
///
20
20
/// This future is created with the `join_all` method.
21
21
#[ must_use = "futures do nothing unless polled" ]
22
- pub struct JoinAll < I >
23
- where I : IntoIterator ,
24
- I :: Item : IntoFuture ,
22
+ pub struct JoinAll < Item >
23
+ where Item : IntoFuture ,
25
24
{
26
- elems : Vec < ElemState < <I :: Item as IntoFuture >:: Future > > ,
25
+ elems : Vec < ElemState < <Item as IntoFuture >:: Future > > ,
27
26
}
28
27
29
28
impl < I > fmt:: Debug for JoinAll < I >
30
- where I : IntoIterator ,
31
- I :: Item : IntoFuture ,
32
- <<I as IntoIterator >:: Item as IntoFuture >:: Future : fmt:: Debug ,
33
- <<I as IntoIterator >:: Item as IntoFuture >:: Item : fmt:: Debug ,
29
+ where I : IntoFuture ,
30
+ <I as IntoFuture >:: Future : fmt:: Debug ,
31
+ <I as IntoFuture >:: Item : fmt:: Debug ,
34
32
{
35
33
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
36
34
fmt. debug_struct ( "JoinAll" )
@@ -73,7 +71,7 @@ impl<I> fmt::Debug for JoinAll<I>
73
71
/// x
74
72
/// });
75
73
/// ```
76
- pub fn join_all < I > ( i : I ) -> JoinAll < I >
74
+ pub fn join_all < I > ( i : I ) -> JoinAll < I :: Item >
77
75
where I : IntoIterator ,
78
76
I :: Item : IntoFuture ,
79
77
{
@@ -83,12 +81,11 @@ pub fn join_all<I>(i: I) -> JoinAll<I>
83
81
JoinAll { elems : elems }
84
82
}
85
83
86
- impl < I > Future for JoinAll < I >
87
- where I : IntoIterator ,
88
- I :: Item : IntoFuture ,
84
+ impl < Item > Future for JoinAll < Item >
85
+ where Item : IntoFuture ,
89
86
{
90
- type Item = Vec < <I :: Item as IntoFuture >:: Item > ;
91
- type Error = <I :: Item as IntoFuture >:: Error ;
87
+ type Item = Vec < <Item as IntoFuture >:: Item > ;
88
+ type Error = <Item as IntoFuture >:: Error ;
92
89
93
90
94
91
fn poll ( & mut self ) -> Poll < Self :: Item , Self :: Error > {
0 commit comments