Skip to content

Commit

Permalink
Fix "bench1" in debug mode
Browse files Browse the repository at this point in the history
Benches use the `release` profile so this was silently ignored.
But `cargo test --all-targets` uses the `debug` profile so it does not ignore it.
  • Loading branch information
Philippe-Cholet authored and phimuemue committed Oct 3, 2023
1 parent c4358ab commit 0897f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/bench1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ fn kmerge_tenway(c: &mut Criterion) {

let mut state = 1729u16;
fn rng(state: &mut u16) -> u16 {
let new = state.wrapping_mul(31421) + 6927;
let new = state.wrapping_mul(31421).wrapping_add(6927);
*state = new;
new
}
Expand Down

0 comments on commit 0897f56

Please sign in to comment.