Skip to content

Commit c13e80e

Browse files
committed
imgproc: appease clippy manual_is_multiple_of in box_filter_2d
1 parent 5448023 commit c13e80e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/yscv-imgproc/src/ops/morphology.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ fn box_filter_2d(
12271227
got: c,
12281228
});
12291229
}
1230-
if ksize == 0 || ksize % 2 == 0 {
1230+
if ksize == 0 || ksize.is_multiple_of(2) {
12311231
return Err(ImgProcError::InvalidBlockSize { block_size: ksize });
12321232
}
12331233
let r = ksize / 2;

0 commit comments

Comments
 (0)