@@ -146,7 +146,7 @@ macro_rules! test {
146
146
) ;
147
147
) *
148
148
149
- let body = rt. block_on( concat( res. into_body ( ) ) )
149
+ let body = rt. block_on( concat( res) )
150
150
. expect( "body concat wait" ) ;
151
151
152
152
let expected_res_body = Option :: <& [ u8 ] >:: from( $response_body)
@@ -1065,7 +1065,7 @@ mod dispatch_impl {
1065
1065
. request ( req)
1066
1066
. and_then ( move |res| {
1067
1067
assert_eq ! ( res. status( ) , hyper:: StatusCode :: OK ) ;
1068
- concat ( res. into_body ( ) )
1068
+ concat ( res)
1069
1069
} )
1070
1070
. map_ok ( |_| ( ) )
1071
1071
} ;
@@ -1128,7 +1128,7 @@ mod dispatch_impl {
1128
1128
. unwrap ( ) ;
1129
1129
let res = client. request ( req) . and_then ( move |res| {
1130
1130
assert_eq ! ( res. status( ) , hyper:: StatusCode :: OK ) ;
1131
- concat ( res. into_body ( ) )
1131
+ concat ( res)
1132
1132
} ) ;
1133
1133
let rx = rx1. expect ( "thread panicked" ) ;
1134
1134
@@ -1296,7 +1296,7 @@ mod dispatch_impl {
1296
1296
. unwrap ( ) ;
1297
1297
let res = client. request ( req) . and_then ( move |res| {
1298
1298
assert_eq ! ( res. status( ) , hyper:: StatusCode :: OK ) ;
1299
- concat ( res. into_body ( ) )
1299
+ concat ( res)
1300
1300
} ) ;
1301
1301
let rx = rx1. expect ( "thread panicked" ) ;
1302
1302
@@ -1342,7 +1342,7 @@ mod dispatch_impl {
1342
1342
. unwrap ( ) ;
1343
1343
let res = client. request ( req) . and_then ( move |res| {
1344
1344
assert_eq ! ( res. status( ) , hyper:: StatusCode :: OK ) ;
1345
- concat ( res. into_body ( ) )
1345
+ concat ( res)
1346
1346
} ) ;
1347
1347
let rx = rx1. expect ( "thread panicked" ) ;
1348
1348
@@ -2098,7 +2098,7 @@ mod conn {
2098
2098
2099
2099
let res = client. send_request ( req) . and_then ( move |res| {
2100
2100
assert_eq ! ( res. status( ) , hyper:: StatusCode :: OK ) ;
2101
- concat ( res. into_body ( ) )
2101
+ concat ( res)
2102
2102
} ) ;
2103
2103
let rx = rx1. expect ( "thread panicked" ) ;
2104
2104
let rx = rx. then ( |_| tokio:: time:: delay_for ( Duration :: from_millis ( 200 ) ) ) ;
@@ -2144,7 +2144,7 @@ mod conn {
2144
2144
2145
2145
let res = client. send_request ( req) . and_then ( move |res| {
2146
2146
assert_eq ! ( res. status( ) , hyper:: StatusCode :: OK ) ;
2147
- concat ( res. into_body ( ) )
2147
+ concat ( res)
2148
2148
} ) ;
2149
2149
let rx = rx1. expect ( "thread panicked" ) ;
2150
2150
let rx = rx. then ( |_| tokio:: time:: delay_for ( Duration :: from_millis ( 200 ) ) ) ;
@@ -2184,7 +2184,7 @@ mod conn {
2184
2184
. unwrap ( ) ;
2185
2185
let res1 = client. send_request ( req) . and_then ( move |res| {
2186
2186
assert_eq ! ( res. status( ) , hyper:: StatusCode :: OK ) ;
2187
- concat ( res. into_body ( ) )
2187
+ concat ( res)
2188
2188
} ) ;
2189
2189
2190
2190
// pipelined request will hit NotReady, and thus should return an Error::Cancel
@@ -2258,7 +2258,7 @@ mod conn {
2258
2258
let res = client. send_request ( req) . and_then ( move |res| {
2259
2259
assert_eq ! ( res. status( ) , hyper:: StatusCode :: SWITCHING_PROTOCOLS ) ;
2260
2260
assert_eq ! ( res. headers( ) [ "Upgrade" ] , "foobar" ) ;
2261
- concat ( res. into_body ( ) )
2261
+ concat ( res)
2262
2262
} ) ;
2263
2263
2264
2264
let rx = rx1. expect ( "thread panicked" ) ;
@@ -2348,7 +2348,7 @@ mod conn {
2348
2348
. send_request ( req)
2349
2349
. and_then ( move |res| {
2350
2350
assert_eq ! ( res. status( ) , hyper:: StatusCode :: OK ) ;
2351
- concat ( res. into_body ( ) )
2351
+ concat ( res)
2352
2352
} )
2353
2353
. map_ok ( |body| {
2354
2354
assert_eq ! ( body. as_ref( ) , b"" ) ;
0 commit comments