Skip to content

Commit 51ae1e4

Browse files
committed
fix clippy lint
1 parent e91047b commit 51ae1e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/prepare.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ where
189189
let threshold_s = cmp::max(w / 8, 1);
190190

191191
for y in 0..h {
192-
for r in &mut row_average {
193-
*r = 0;
194-
}
192+
row_average.fill(0);
195193

196194
for x in 0..w {
197195
let (v, u) = if y % 2 == 0 {

0 commit comments

Comments
 (0)