@@ -362,13 +362,13 @@ pub fn try_tls_endpoint() -> State {
362362 let mut worker = Worker :: start_new_worker ( "TLS-ENDPOINT" , config, & listeners, state) ;
363363
364364 worker. send_proxy_request_type ( RequestType :: AddHttpsListener (
365- ListenerBuilder :: new_https ( front_address. clone ( ) . into ( ) )
365+ ListenerBuilder :: new_https ( front_address. clone ( ) )
366366 . to_tls ( None )
367367 . unwrap ( ) ,
368368 ) ) ;
369369
370370 worker. send_proxy_request_type ( RequestType :: ActivateListener ( ActivateListener {
371- address : front_address. clone ( ) . into ( ) ,
371+ address : front_address. clone ( ) ,
372372 proxy : ListenerType :: Https . into ( ) ,
373373 from_scm : false ,
374374 } ) ) ;
@@ -391,7 +391,7 @@ pub fn try_tls_endpoint() -> State {
391391 names : vec ! [ ] ,
392392 } ;
393393 let add_certificate = AddCertificate {
394- address : front_address. into ( ) ,
394+ address : front_address,
395395 certificate : certificate_and_key,
396396 expired_at : None ,
397397 } ;
@@ -1062,7 +1062,7 @@ pub fn try_blue_geen() -> State {
10621062 worker. send_proxy_request_type ( RequestType :: AddBackend ( Worker :: default_backend (
10631063 "cluster_0" ,
10641064 "cluster_0-0" ,
1065- primary_address. into ( ) ,
1065+ primary_address,
10661066 None ,
10671067 ) ) ) ;
10681068 worker. read_to_last ( ) ;
@@ -1081,7 +1081,7 @@ pub fn try_blue_geen() -> State {
10811081 worker. send_proxy_request_type ( RequestType :: AddBackend ( Worker :: default_backend (
10821082 "cluster_0" ,
10831083 "cluster_0-1" ,
1084- secondary_address. into ( ) ,
1084+ secondary_address,
10851085 None ,
10861086 ) ) ) ;
10871087 worker. read_to_last ( ) ;
@@ -1138,7 +1138,7 @@ pub fn try_keep_alive() -> State {
11381138
11391139 let mut backend = backends. pop ( ) . unwrap ( ) ;
11401140 let mut client = Client :: new (
1141- format ! ( "client" ) ,
1141+ "client" . to_string ( ) ,
11421142 front_address,
11431143 "GET /api HTTP/1.1\r \n Host: localhost\r \n Connection: close\r \n \r \n " ,
11441144 ) ;
@@ -1220,7 +1220,7 @@ pub fn try_stick() -> State {
12201220 let mut backend2 = backends. pop ( ) . unwrap ( ) ;
12211221 let mut backend1 = backends. pop ( ) . unwrap ( ) ;
12221222 let mut client = Client :: new (
1223- format ! ( "client" ) ,
1223+ "client" . to_string ( ) ,
12241224 front_address,
12251225 "GET /api HTTP/1.1\r \n Host: localhost\r \n Connection: close\r \n Cookie: foo=bar\r \n \r \n " ,
12261226 ) ;
@@ -1423,7 +1423,7 @@ pub fn try_head() -> State {
14231423 let mut client = Client :: new (
14241424 "client" ,
14251425 front_address,
1426- http_request ( "HEAD" , "/api" , format ! ( "ping" ) , "localhost" ) ,
1426+ http_request ( "HEAD" , "/api" , "ping" . to_string ( ) , "localhost" ) ,
14271427 ) ;
14281428
14291429 client. connect ( ) ;
@@ -1559,13 +1559,13 @@ fn try_wildcard() -> State {
15591559 let mut backend0 = SyncBackend :: new (
15601560 "BACKEND_0" ,
15611561 back_address,
1562- http_ok_response ( format ! ( "pong0" ) ) ,
1562+ http_ok_response ( "pong0" . to_string ( ) ) ,
15631563 ) ;
15641564
15651565 let mut client = Client :: new (
15661566 "client" ,
15671567 front_address,
1568- http_request ( "POST" , "/api" , format ! ( "ping" ) , "www.sozu.io" ) ,
1568+ http_request ( "POST" , "/api" , "ping" . to_string ( ) , "www.sozu.io" ) ,
15691569 ) ;
15701570
15711571 backend0. connect ( ) ;
@@ -1604,7 +1604,7 @@ fn try_wildcard() -> State {
16041604 let mut backend1 = SyncBackend :: new (
16051605 "BACKEND_1" ,
16061606 back_address,
1607- http_ok_response ( format ! ( "pong1" ) ) ,
1607+ http_ok_response ( "pong1" . to_string ( ) ) ,
16081608 ) ;
16091609
16101610 worker. read_to_last ( ) ;
0 commit comments