Skip to content

Commit 1e999c3

Browse files
usbalbinKeybinder
authored andcommitted
clippy
1 parent 7d885b6 commit 1e999c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl<const SECTOR_SZ_KB: u32> FlashWriter<'_, SECTOR_SZ_KB> {
148148
return Err(Error::LengthTooLong);
149149
}
150150

151-
if !force_padding && length % 8 != 0 {
151+
if !force_padding && !length.is_multiple_of(8) {
152152
return Err(Error::ArrayMustBeDivisibleBy8);
153153
}
154154

0 commit comments

Comments
 (0)