@@ -22,7 +22,6 @@ cfg_unstable_default! {
2222
2323pub use core:: future:: Future as Future ;
2424
25- extension_trait ! {
2625 #[ doc = r#"
2726 Extension methods for [`Future`].
2827
@@ -45,7 +44,7 @@ extension_trait! {
4544 /// ```
4645 #[ cfg( feature = "unstable" ) ]
4746 #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
48- fn delay( self , dur: Duration ) -> [ DelayFuture <Self >]
47+ fn delay ( self , dur : Duration ) -> DelayFuture < Self >
4948 where
5049 Self : Sized ,
5150 {
@@ -70,7 +69,7 @@ extension_trait! {
7069 #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
7170 fn flatten (
7271 self ,
73- ) -> [ FlattenFuture <Self , <Self :: Output as IntoFuture >:: Future >]
72+ ) -> FlattenFuture < Self , <Self :: Output as IntoFuture >:: Future >
7473 where
7574 Self : Sized ,
7675 <Self as Future >:: Output : IntoFuture ,
@@ -112,7 +111,7 @@ extension_trait! {
112111 fn race < F > (
113112 self ,
114113 other : F ,
115- ) -> [ Race <Self , F >]
114+ ) -> Race < Self , F >
116115 where
117116 Self : std:: future:: Future + Sized ,
118117 F : std:: future:: Future < Output = <Self as std:: future:: Future >:: Output > ,
@@ -158,7 +157,7 @@ extension_trait! {
158157 fn try_race < F , T , E > (
159158 self ,
160159 other : F
161- ) -> [ TryRace <Self , F >]
160+ ) -> TryRace < Self , F >
162161 where
163162 Self : std:: future:: Future < Output = Result < T , E > > + Sized ,
164163 F : std:: future:: Future < Output = <Self as std:: future:: Future >:: Output > ,
@@ -195,7 +194,7 @@ extension_trait! {
195194 fn join < F > (
196195 self ,
197196 other : F
198- ) -> [ Join <Self , F >]
197+ ) -> Join < Self , F >
199198 where
200199 Self : std:: future:: Future + Sized ,
201200 F : std:: future:: Future ,
@@ -242,7 +241,7 @@ extension_trait! {
242241 fn try_join < F , A , B , E > (
243242 self ,
244243 other : F
245- ) -> [ TryJoin <Self , F >]
244+ ) -> TryJoin < Self , F >
246245 where
247246 Self : std:: future:: Future < Output = Result < A , E > > + Sized ,
248247 F : std:: future:: Future < Output = Result < B , E > > ,
@@ -278,13 +277,12 @@ extension_trait! {
278277 "# ]
279278 #[ cfg( any( all( feature = "default" , feature = "unstable" ) , feature = "docs" ) ) ]
280279 #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
281- fn timeout( self , dur: Duration ) -> [ TimeoutFuture <Self >]
280+ fn timeout ( self , dur : Duration ) -> TimeoutFuture < Self >
282281 where Self : Sized
283282 {
284283 TimeoutFuture :: new ( self , dur)
285284 }
286285 }
287- }
288286
289287impl < T : Future + ?Sized > FutureExt for T { }
290288
0 commit comments