Skip to content

Commit 619ddb6

Browse files
authored
msrv patch for tokio-stream, and other lint changes (open-telemetry#2086)
1 parent 77b12cd commit 619ddb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

throughput.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ where
3636
if let Some(arg_str) = args_iter.nth(1) {
3737
let arg = arg_str.parse::<usize>();
3838

39-
if !arg.is_ok() {
39+
if arg.is_err() {
4040
eprintln!("Invalid command line argument '{}' as number of threads. Make sure the value is a positive integer.", arg_str);
4141
std::process::exit(1);
4242
}
@@ -50,7 +50,7 @@ where
5050
arg_num, num_threads
5151
);
5252
}
53-
num_threads = arg_num as usize;
53+
num_threads = arg_num;
5454
} else {
5555
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);
5656
std::process::exit(1);

0 commit comments

Comments
 (0)