Skip to content

Commit 0897f56

Browse files
Philippe-Choletphimuemue
authored andcommitted
Fix "bench1" in debug mode
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.
1 parent c4358ab commit 0897f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benches/bench1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ fn kmerge_tenway(c: &mut Criterion) {
581581

582582
let mut state = 1729u16;
583583
fn rng(state: &mut u16) -> u16 {
584-
let new = state.wrapping_mul(31421) + 6927;
584+
let new = state.wrapping_mul(31421).wrapping_add(6927);
585585
*state = new;
586586
new
587587
}

0 commit comments

Comments
 (0)