use is_power_of_two where appropriate

This commit is contained in:
Ralf Jung 2022-05-30 17:47:16 -04:00
parent 065ff89e33
commit a8e457fad1

View File

@ -68,7 +68,7 @@ fn page_size() {
// In particular, this checks that it is not 0.
assert!(
page_size.next_power_of_two() == page_size,
page_size.is_power_of_two(),
"page size not a power of two: {}",
page_size
);