apply is_multiple_of lint

This commit is contained in:
auronandace
2026-02-21 08:39:26 +00:00
parent 02a68d3c87
commit df469ddcb3
10 changed files with 27 additions and 30 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ impl Frame {
/ PAGE_SIZE
}
pub fn is_aligned_to_order(self, order: u32) -> bool {
self.base().data() % (PAGE_SIZE << order) == 0
self.base().data().is_multiple_of(PAGE_SIZE << order)
}
}