@@ -40,7 +40,7 @@ async fn test_get_request() -> Result<(), Box<dyn Error + Send + Sync>> {
4040 let client: Client < _ , Empty < Bytes > > =
4141 Client :: builder ( TokioExecutor :: new ( ) ) . build ( connector) ;
4242
43- let uri = Uri :: from_str ( format ! ( "https://localhost:{}" , port ) . as_str ( ) ) ?;
43+ let uri = Uri :: from_str ( format ! ( "https://localhost:{port}" ) . as_str ( ) ) ?;
4444 let response = client. get ( uri) . await ?;
4545 assert_eq ! ( response. status( ) , 200 ) ;
4646
@@ -62,9 +62,7 @@ async fn test_http_methods() -> Result<(), Box<dyn Error + Send + Sync>> {
6262 Client :: builder ( TokioExecutor :: new ( ) ) . build ( connector) ;
6363 let request: Request < Full < Bytes > > = Request :: builder ( )
6464 . method ( method)
65- . uri ( Uri :: from_str (
66- format ! ( "https://localhost:{}" , port) . as_str ( ) ,
67- ) ?)
65+ . uri ( Uri :: from_str ( format ! ( "https://localhost:{port}" ) . as_str ( ) ) ?)
6866 . body ( Full :: from ( TEST_DATA ) ) ?;
6967
7068 let response = client. request ( request) . await ?;
@@ -89,9 +87,7 @@ async fn test_large_request() -> Result<(), Box<dyn Error + Send + Sync>> {
8987 let client: Client < _ , Full < Bytes > > = Client :: builder ( TokioExecutor :: new ( ) ) . build ( connector) ;
9088 let request: Request < Full < Bytes > > = Request :: builder ( )
9189 . method ( Method :: POST )
92- . uri ( Uri :: from_str (
93- format ! ( "https://localhost:{}" , port) . as_str ( ) ,
94- ) ?)
90+ . uri ( Uri :: from_str ( format ! ( "https://localhost:{port}" ) . as_str ( ) ) ?)
9591 . body ( Full :: from ( LARGE_TEST_DATA ) ) ?;
9692
9793 let response = client. request ( request) . await ?;
@@ -138,7 +134,7 @@ async fn test_sni() -> Result<(), Box<dyn Error + Send + Sync>> {
138134 let client: Client < _ , Empty < Bytes > > =
139135 Client :: builder ( TokioExecutor :: new ( ) ) . build ( connector) ;
140136
141- let uri = Uri :: from_str ( format ! ( "https://{}:{}" , hostname , port ) . as_str ( ) ) ?;
137+ let uri = Uri :: from_str ( format ! ( "https://{hostname }:{port}" ) . as_str ( ) ) ?;
142138 let response = client. get ( uri) . await ?;
143139 assert_eq ! ( response. status( ) , 200 ) ;
144140
@@ -288,7 +284,7 @@ async fn http2() -> Result<(), Box<dyn Error + Send + Sync>> {
288284 let client: Client < _ , Empty < Bytes > > =
289285 Client :: builder ( TokioExecutor :: new ( ) ) . build ( connector) ;
290286
291- let uri = Uri :: from_str ( format ! ( "https://localhost:{}" , port ) . as_str ( ) ) ?;
287+ let uri = Uri :: from_str ( format ! ( "https://localhost:{port}" ) . as_str ( ) ) ?;
292288 let response = client. get ( uri) . await ?;
293289 assert_eq ! ( response. status( ) , 200 ) ;
294290
@@ -324,7 +320,7 @@ async fn config_alpn_ignored() -> Result<(), Box<dyn Error + Send + Sync>> {
324320 let client: Client < _ , Empty < Bytes > > =
325321 Client :: builder ( TokioExecutor :: new ( ) ) . build ( connector) ;
326322
327- let uri = Uri :: from_str ( format ! ( "https://localhost:{}" , port ) . as_str ( ) ) ?;
323+ let uri = Uri :: from_str ( format ! ( "https://localhost:{port}" ) . as_str ( ) ) ?;
328324 let response = client. get ( uri) . await ?;
329325 assert_eq ! ( response. status( ) , 200 ) ;
330326
0 commit comments