From 0897f56ad6a305b9686b0a4447344bc8c7e5c580 Mon Sep 17 00:00:00 2001 From: Philippe-Cholet Date: Sat, 30 Sep 2023 16:59:18 +0200 Subject: [PATCH] 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. --- benches/bench1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/bench1.rs b/benches/bench1.rs index 084567177..4f6e1963e 100644 --- a/benches/bench1.rs +++ b/benches/bench1.rs @@ -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 }