We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70faa59 commit b6dbb75Copy full SHA for b6dbb75
crates/divan_compat/benches/basic_example.rs
@@ -44,6 +44,7 @@ mod const_bench {
44
fn init_array<const N: usize>() -> [i32; N] {
45
let mut result = [0; N];
46
47
+ #[allow(clippy::needless_range_loop)]
48
for i in 0..N {
49
result[i] = divan::black_box(i as i32);
50
}
0 commit comments