Skip to content

Commit 813fe46

Browse files
authored
chore: fix format lint (open-telemetry#3039)
1 parent 8e351e5 commit 813fe46

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

throughput.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ where
3737
let arg = arg_str.parse::<usize>();
3838

3939
if arg.is_err() {
40-
eprintln!("Invalid command line argument '{}' as number of threads. Make sure the value is a positive integer.", arg_str);
40+
eprintln!("Invalid command line argument '{arg_str}' as number of threads. Make sure the value is a positive integer.");
4141
std::process::exit(1);
4242
}
4343

@@ -46,18 +46,17 @@ where
4646
if arg_num > 0 {
4747
if arg_num > num_cpus::get() {
4848
println!(
49-
"Specified {} threads which is larger than the number of logical cores ({})!",
50-
arg_num, num_threads
49+
"Specified {arg_num} threads which is larger than the number of logical cores ({num_threads})!"
5150
);
5251
}
5352
num_threads = arg_num;
5453
} else {
55-
eprintln!("Invalid command line argument {} as number of threads. Make sure the value is above 0 and less than or equal to number of available logical cores ({}).", arg_num, num_threads);
54+
eprintln!("Invalid command line argument {arg_num} as number of threads. Make sure the value is above 0 and less than or equal to number of available logical cores ({num_threads}).");
5655
std::process::exit(1);
5756
}
5857
}
5958

60-
println!("Number of threads: {}\n", num_threads);
59+
println!("Number of threads: {num_threads}\n");
6160
let func_arc = Arc::new(func);
6261
let mut worker_stats_vec: Vec<WorkerStats> = Vec::new();
6362

0 commit comments

Comments
 (0)