@@ -62,7 +62,7 @@ use database::{ArtifactId, ArtifactIdNumber, Commit, CommitType, Connection, Poo
6262
6363fn n_normal_benchmarks_remaining ( n : usize ) -> String {
6464 let suffix = if n == 1 { "" } else { "s" } ;
65- format ! ( "{} normal benchmark{} remaining" , n , suffix )
65+ format ! ( "{n } normal benchmark{suffix } remaining" )
6666}
6767
6868struct BenchmarkErrors ( usize ) ;
@@ -160,7 +160,7 @@ fn generate_diffs(
160160 vec ! [ format!( "{:?}" , scenario) ]
161161 }
162162 Scenario :: IncrPatched => ( 0 ..benchmark. patches . len ( ) )
163- . map ( |i| format ! ( "{:?}{}" , scenario , i ) )
163+ . map ( |i| format ! ( "{scenario :?}{i}" ) )
164164 . collect :: < Vec < _ > > ( ) ,
165165 }
166166 } ) {
@@ -175,15 +175,15 @@ fn generate_diffs(
175175 profiler. postfix( )
176176 )
177177 } ;
178- let id_diff = format ! ( "{}-{}" , id1 , id2 ) ;
178+ let id_diff = format ! ( "{id1 }-{id2}" ) ;
179179 let prefix = profiler. prefix ( ) ;
180180 let left = out_dir. join ( filename ( prefix, id1) ) ;
181181 let right = out_dir. join ( filename ( prefix, id2) ) ;
182182 let output = out_dir. join ( filename ( & format ! ( "{prefix}-diff" ) , & id_diff) ) ;
183183
184184 if let Err ( e) = profiler. diff ( & left, & right, & output) {
185185 errors. incr ( ) ;
186- eprintln ! ( "collector error: {:?}" , e ) ;
186+ eprintln ! ( "collector error: {e :?}" ) ;
187187 continue ;
188188 }
189189
@@ -249,7 +249,7 @@ fn main() {
249249 match main_result ( ) {
250250 Ok ( code) => process:: exit ( code) ,
251251 Err ( err) => {
252- eprintln ! ( "collector error: {:?}" , err ) ;
252+ eprintln ! ( "collector error: {err :?}" ) ;
253253 process:: exit ( 1 ) ;
254254 }
255255 }
@@ -998,7 +998,7 @@ fn main_result() -> anyhow::Result<i32> {
998998 println ! ( "processing artifacts" ) ;
999999 let client = reqwest:: blocking:: Client :: new ( ) ;
10001000 let response: collector:: api:: next_artifact:: Response = client
1001- . get ( format ! ( "{}/perf/next_artifact" , site_url ) )
1001+ . get ( format ! ( "{site_url }/perf/next_artifact" ) )
10021002 . send ( ) ?
10031003 . json ( ) ?;
10041004 let next = if let Some ( c) = response. artifact {
@@ -1065,7 +1065,7 @@ fn main_result() -> anyhow::Result<i32> {
10651065 let sysroot = rt
10661066 . block_on ( Sysroot :: install ( sha. clone ( ) , & host_target_tuple, & backends) )
10671067 . with_context ( || {
1068- format ! ( "failed to install sysroot for {:?}" , commit )
1068+ format ! ( "failed to install sysroot for {commit :?}" )
10691069 } ) ?;
10701070
10711071 let mut benchmarks = get_compile_benchmarks (
@@ -1126,7 +1126,7 @@ fn main_result() -> anyhow::Result<i32> {
11261126 }
11271127 } ) ;
11281128 // We need to send a message to this endpoint even if the collector panics
1129- client. post ( format ! ( "{}/perf/onpush" , site_url ) ) . send ( ) ?;
1129+ client. post ( format ! ( "{site_url }/perf/onpush" ) ) . send ( ) ?;
11301130
11311131 match res {
11321132 Ok ( res) => res?,
@@ -1366,7 +1366,7 @@ Make sure to modify `{dir}/perf-config.json` if the category/artifact don't matc
13661366
13671367 if let Some ( benchmark_job) = benchmark_job {
13681368 // TODO; process the job
1369- println ! ( "{:?}" , benchmark_job ) ;
1369+ println ! ( "{benchmark_job :?}" ) ;
13701370 }
13711371
13721372 Ok ( 0 )
@@ -1658,7 +1658,7 @@ fn print_binary_stats(
16581658 . corner_top_right ( '│' ) ,
16591659 ) ,
16601660 ) ;
1661- println ! ( "{}" , table ) ;
1661+ println ! ( "{table}" ) ;
16621662}
16631663
16641664fn get_local_toolchain_for_runtime_benchmarks (
@@ -1929,15 +1929,14 @@ async fn bench_compile(
19291929 let result = measure ( & mut processor) . await ;
19301930 if let Err ( s) = result {
19311931 eprintln ! (
1932- "collector error: Failed to benchmark '{}', recorded: {:#}" ,
1933- benchmark_name, s
1932+ "collector error: Failed to benchmark '{benchmark_name}', recorded: {s:#}"
19341933 ) ;
19351934 errors. incr ( ) ;
19361935 tx. conn ( )
19371936 . record_error (
19381937 collector. artifact_row_id ,
19391938 & benchmark_name. 0 ,
1940- & format ! ( "{:?}" , s ) ,
1939+ & format ! ( "{s :?}" ) ,
19411940 )
19421941 . await ;
19431942 } ;
0 commit comments