@@ -93,10 +93,10 @@ pub async fn measure(
9393 format ! (
9494 "{}:{}:{}" ,
9595 introspected_nodejs:: setup( )
96- . map_err( |e| anyhow!( "failed to setup NodeJS introspection. {}" , e ) ) ?
96+ . map_err( |e| anyhow!( "failed to setup NodeJS introspection. {e}" ) ) ?
9797 . to_string_lossy( ) ,
9898 introspected_golang:: setup( )
99- . map_err( |e| anyhow!( "failed to setup Go introspection. {}" , e ) ) ?
99+ . map_err( |e| anyhow!( "failed to setup Go introspection. {e}" ) ) ?
100100 . to_string_lossy( ) ,
101101 env:: var( "PATH" ) . unwrap_or_default( ) ,
102102 ) ,
@@ -136,7 +136,7 @@ pub async fn measure(
136136 debug ! ( "cmd: {cmd:?}" ) ;
137137 let status = run_command_with_log_pipe ( cmd)
138138 . await
139- . map_err ( |e| anyhow ! ( "failed to execute the benchmark process. {}" , e ) ) ?;
139+ . map_err ( |e| anyhow ! ( "failed to execute the benchmark process. {e}" ) ) ?;
140140 debug ! (
141141 "Valgrind exit code = {:?}, Valgrind signal = {:?}" ,
142142 status. code( ) ,
@@ -157,14 +157,11 @@ pub async fn measure(
157157 let content = std:: fs:: read_to_string ( & cmd_status_path) ?;
158158 content
159159 . parse :: < u32 > ( )
160- . map_err ( |e| anyhow ! ( "unable to retrieve the program exit code. {}" , e ) ) ?
160+ . map_err ( |e| anyhow ! ( "unable to retrieve the program exit code. {e}" ) ) ?
161161 } ;
162162 debug ! ( "Program exit code = {cmd_status}" ) ;
163163 if cmd_status != 0 {
164- bail ! (
165- "failed to execute the benchmark process, exit code: {}" ,
166- cmd_status
167- ) ;
164+ bail ! ( "failed to execute the benchmark process, exit code: {cmd_status}" ) ;
168165 }
169166
170167 Ok ( ( ) )
0 commit comments