diff --git a/src/bin/loadtest.rs b/src/bin/loadtest.rs index 331ae481..a1723538 100644 --- a/src/bin/loadtest.rs +++ b/src/bin/loadtest.rs @@ -27,11 +27,15 @@ fn main() { ) .get_matches(); - let jobs = *matches - .get_one::("jobs") + let jobs = matches + .get_one::("jobs") + .unwrap() + .parse::() .expect("Number of jobs to run"); - let threads = *matches - .get_one::("threads") + let threads = matches + .get_one::("threads") + .unwrap() + .parse::() .expect("Number of consumers/producers to run"); println!( "Running loadtest with {} jobs and {} threads",