Skip to content

Commit 7f510a2

Browse files
committed
fit: fix Clippy warnings
Signed-off-by: Daniel Maslowski <[email protected]>
1 parent 36eae24 commit 7f510a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl Fit {
158158
}
159159
let offset = mapping & fp as usize;
160160
// NOTE: FIT is usually aligned. The spec does not mandate it though.
161-
if offset % 0x10 != 0 {
161+
if !offset.is_multiple_of(0x10) {
162162
return Err(FitError::InvalidPointer(format!(
163163
"Not a FIT pointer: {offset:08x}"
164164
)));

0 commit comments

Comments
 (0)