Skip to content

Commit

Permalink
Refactor benchmark and main function for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuSoysal authored Dec 10, 2024
1 parent 1b550e4 commit fcffd09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benches/my_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ pub fn criterion_benchmark(c: &mut Criterion) {
}

criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);
criterion_main!(benches);
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub mod fib;
pub mod fib;
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fn main() {
let args: Vec<String> = std::env::args().collect();
let n = args
let _n = args
.get(1)
.expect("Give one argument")
.parse::<u32>()
Expand Down

0 comments on commit fcffd09

Please sign in to comment.