Auto merge of #2168 - RalfJung:power, r=RalfJung

use is_power_of_two where appropriate
This commit is contained in:
bors 2022-05-30 22:01:53 +00:00
commit 9d418a3f03

View File

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