@@ -88,15 +88,15 @@ async fn main() {
8888 args,
8989 } = Args :: parse ( ) ;
9090
91- let authority = http:: uri:: Authority :: from_str ( & format ! ( "localhost:{}" , port ) )
91+ let authority = http:: uri:: Authority :: from_str ( & format ! ( "localhost:{port}" ) )
9292 . expect ( "HTTP authority must be valid" ) ;
9393
9494 // If linkerd is not explicitly disabled, wait until the proxy is ready
9595 // before running the application.
9696 match linkerd_disabled_reason ( ) {
9797 Some ( reason) => {
9898 if verbose {
99- eprintln ! ( "Linkerd readiness check skipped: {}" , reason ) ;
99+ eprintln ! ( "Linkerd readiness check skipped: {reason}" ) ;
100100 }
101101 }
102102 None => {
@@ -113,8 +113,7 @@ async fn main() {
113113 ( ) = await_ready( authority. clone( ) , backoff) => { } ,
114114 timeout = await_timeout => {
115115 eprintln!(
116- "linkerd-proxy failed to become ready within {:?} timeout" ,
117- timeout
116+ "linkerd-proxy failed to become ready within {timeout:?} timeout"
118117 ) ;
119118
120119 // Continue running the command when timeouts are configured
@@ -179,7 +178,7 @@ fn exec(cmd: String, args: Vec<String>) {
179178 use std:: os:: unix:: process:: CommandExt ;
180179
181180 let err = Command :: new ( & cmd) . args ( args) . exec ( ) ;
182- eprintln ! ( "Failed to exec child program: {}: {}" , cmd , err ) ;
181+ eprintln ! ( "Failed to exec child program: {cmd }: {err}" ) ;
183182 }
184183
185184 #[ cfg( windows) ]
@@ -200,7 +199,7 @@ async fn fork_with_shutdown(cmd: String, args: Vec<String>) -> io::Result<ExitSt
200199 let mut child = match Command :: new ( & cmd) . args ( args) . spawn ( ) {
201200 Ok ( child) => child,
202201 Err ( e) => {
203- eprintln ! ( "Failed to fork child program: {}: {}" , cmd , e ) ;
202+ eprintln ! ( "Failed to fork child program: {cmd }: {e}" ) ;
204203 #[ cfg( unix) ]
205204 {
206205 use std:: os:: unix:: process:: ExitStatusExt ;
@@ -237,7 +236,7 @@ async fn fork_with_shutdown(cmd: String, args: Vec<String>) -> io::Result<ExitSt
237236 if let Some ( pid) = child. id( ) {
238237 // If the child hasn't already completed, send a SIGTERM.
239238 if let Err ( e) = kill( Pid :: from_raw( pid. try_into( ) . expect( "Invalid PID" ) ) , SIGTERM ) {
240- eprintln!( "Failed to forward SIGTERM to child process: {}" , e ) ;
239+ eprintln!( "Failed to forward SIGTERM to child process: {e}" ) ;
241240 }
242241 }
243242 // Wait to get the child's exit code.
0 commit comments