@@ -152,7 +152,7 @@ extension_trait! {
152152 #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
153153 fn delay( self , dur: Duration ) -> impl Future <Output = Self :: Output > [ DelayFuture <Self >]
154154 where
155- Self : Future + Sized
155+ Self : Sized ,
156156 {
157157 DelayFuture :: new( self , dur)
158158 }
@@ -173,10 +173,13 @@ extension_trait! {
173173 /// ```
174174 #[ cfg( feature = "unstable" ) ]
175175 #[ 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 >]
177180 where
178- Self : Future + Sized ,
179- <Self as Future >:: Output : IntoFuture
181+ Self : Sized ,
182+ <Self as Future >:: Output : IntoFuture ,
180183 {
181184 FlattenFuture :: new( self )
182185 }
@@ -214,7 +217,7 @@ extension_trait! {
214217 #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
215218 fn race<F >(
216219 self ,
217- other: F
220+ other: F ,
218221 ) -> impl Future <Output = <Self as std:: future:: Future >:: Output > [ Race <Self , F >]
219222 where
220223 Self : std:: future:: Future + Sized ,
@@ -258,7 +261,7 @@ extension_trait! {
258261 "# ]
259262 #[ cfg( feature = "unstable" ) ]
260263 #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
261- fn try_race<F : std :: future :: Future , T , E >(
264+ fn try_race<F , T , E >(
262265 self ,
263266 other: F
264267 ) -> impl Future <Output = <Self as std:: future:: Future >:: Output > [ TryRace <Self , F >]
0 commit comments