@@ -152,7 +152,7 @@ extension_trait! {
152
152
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
153
153
fn delay( self , dur: Duration ) -> impl Future <Output = Self :: Output > [ DelayFuture <Self >]
154
154
where
155
- Self : Future + Sized
155
+ Self : Sized ,
156
156
{
157
157
DelayFuture :: new( self , dur)
158
158
}
@@ -173,10 +173,13 @@ extension_trait! {
173
173
/// ```
174
174
#[ cfg( feature = "unstable" ) ]
175
175
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
176
- fn flatten( self ) -> impl Future <Output = <<Self as Future >:: Output as IntoFuture >:: Output > [ FlattenFuture <Self , <<Self as Future >:: Output as IntoFuture >:: Future >]
176
+ fn flatten(
177
+ self ,
178
+ ) -> impl Future <Output = <Self :: Output as IntoFuture >:: Output >
179
+ [ FlattenFuture <Self , <Self :: Output as IntoFuture >:: Future >]
177
180
where
178
- Self : Future + Sized ,
179
- <Self as Future >:: Output : IntoFuture
181
+ Self : Sized ,
182
+ <Self as Future >:: Output : IntoFuture ,
180
183
{
181
184
FlattenFuture :: new( self )
182
185
}
@@ -214,7 +217,7 @@ extension_trait! {
214
217
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
215
218
fn race<F >(
216
219
self ,
217
- other: F
220
+ other: F ,
218
221
) -> impl Future <Output = <Self as std:: future:: Future >:: Output > [ Race <Self , F >]
219
222
where
220
223
Self : std:: future:: Future + Sized ,
@@ -258,7 +261,7 @@ extension_trait! {
258
261
"# ]
259
262
#[ cfg( feature = "unstable" ) ]
260
263
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
261
- fn try_race<F : std :: future :: Future , T , E >(
264
+ fn try_race<F , T , E >(
262
265
self ,
263
266
other: F
264
267
) -> impl Future <Output = <Self as std:: future:: Future >:: Output > [ TryRace <Self , F >]
0 commit comments