You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: throughput.rs
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ where
37
37
let arg = arg_str.parse::<usize>();
38
38
39
39
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.");
41
41
std::process::exit(1);
42
42
}
43
43
@@ -46,18 +46,17 @@ where
46
46
if arg_num > 0{
47
47
if arg_num > num_cpus::get(){
48
48
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})!"
51
50
);
52
51
}
53
52
num_threads = arg_num;
54
53
}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}).");
0 commit comments