Skip to content

Commit aefcf06

Browse files
committed
Clippy knows no limits. Even the tests must conform.
1 parent 1f331f1 commit aefcf06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/word_swap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn test_swap_logic(image_type: ImageType, asset_name: &str) {
4242

4343
let bpp = image_type.get_size().get_bpp();
4444
// Ceiling division handles widths that aren't byte-aligned
45-
let bytes_per_row = ((width * bpp) + 7) / 8;
45+
let bytes_per_row = (width * bpp).div_ceil(8);
4646
let bytes_per_row = bytes_per_row as usize;
4747

4848
for y in (1..height).step_by(2) {

0 commit comments

Comments
 (0)