@@ -14,9 +14,8 @@ use hyper::{Body, Client, Method, Request, StatusCode};
14
14
15
15
use futures_core:: { Future , Stream , TryFuture } ;
16
16
use futures_channel:: oneshot;
17
- use futures_util:: future:: { self , FutureExt } ;
18
- use futures_util:: try_future:: { self , TryFutureExt } ;
19
- use futures_util:: try_stream:: TryStreamExt ;
17
+ use futures_util:: future:: { self , FutureExt , TryFutureExt } ;
18
+ use futures_util:: stream:: TryStreamExt ;
20
19
use tokio:: runtime:: current_thread:: Runtime ;
21
20
use tokio_net:: tcp:: TcpStream ;
22
21
@@ -256,7 +255,7 @@ macro_rules! test {
256
255
257
256
let rx = rx. expect( "thread panicked" ) ;
258
257
259
- rt. block_on( try_future :: try_join( res, rx) . map_ok( |r| r. 0 ) ) . map( move |mut resp| {
258
+ rt. block_on( future :: try_join( res, rx) . map_ok( |r| r. 0 ) ) . map( move |mut resp| {
260
259
// Always check that HttpConnector has set the "extra" info...
261
260
let extra = resp
262
261
. extensions_mut( )
@@ -931,10 +930,8 @@ mod dispatch_impl {
931
930
932
931
use futures_core:: { self , Future } ;
933
932
use futures_channel:: { mpsc, oneshot} ;
934
- use futures_util:: future:: FutureExt ;
935
- use futures_util:: stream:: StreamExt ;
936
- use futures_util:: try_future:: TryFutureExt ;
937
- use futures_util:: try_stream:: TryStreamExt ;
933
+ use futures_util:: future:: { FutureExt , TryFutureExt } ;
934
+ use futures_util:: stream:: { StreamExt , TryStreamExt } ;
938
935
use tokio:: runtime:: current_thread:: Runtime ;
939
936
use tokio_io:: { AsyncRead , AsyncWrite } ;
940
937
use tokio_net:: tcp:: TcpStream ;
@@ -1673,7 +1670,7 @@ mod dispatch_impl {
1673
1670
let res1 = client. get ( url. clone ( ) ) ;
1674
1671
let res2 = client. get ( url. clone ( ) ) ;
1675
1672
let res3 = client. get ( url. clone ( ) ) ;
1676
- rt. block_on ( try_future :: try_join3 ( res1, res2, res3) ) . unwrap ( ) ;
1673
+ rt. block_on ( future :: try_join3 ( res1, res2, res3) ) . unwrap ( ) ;
1677
1674
1678
1675
// Since the client doesn't know it can ALPN at first, it will have
1679
1676
// started 3 connections. But, the server above will only handle 1,
@@ -1792,9 +1789,8 @@ mod conn {
1792
1789
use std:: time:: { Duration } ;
1793
1790
1794
1791
use futures_channel:: oneshot;
1795
- use futures_util:: future:: { self , poll_fn, FutureExt } ;
1796
- use futures_util:: try_future:: TryFutureExt ;
1797
- use futures_util:: try_stream:: TryStreamExt ;
1792
+ use futures_util:: future:: { self , poll_fn, FutureExt , TryFutureExt } ;
1793
+ use futures_util:: stream:: TryStreamExt ;
1798
1794
use tokio:: runtime:: current_thread:: Runtime ;
1799
1795
use tokio_io:: { AsyncRead , AsyncReadExt as _, AsyncWrite , AsyncWriteExt as _} ;
1800
1796
use tokio_net:: tcp:: { TcpListener as TkTcpListener , TcpStream } ;
0 commit comments