Skip to content

Commit 833ed04

Browse files
authored
Merge pull request #12 from rust-osdev/clippy
fix(virtq): clippy::manual_is_multiple_of
2 parents 595ae6f + 487ee1e commit 833ed04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/virtq/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Avail {
7676
return None;
7777
}
7878

79-
if len % mem::size_of::<le16>() != 0 {
79+
if !len.is_multiple_of(mem::size_of::<le16>()) {
8080
return None;
8181
}
8282

0 commit comments

Comments
 (0)