use is_power_of_two where appropriate
This commit is contained in:
parent
065ff89e33
commit
a8e457fad1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue