Skip to content

Commit 9d418a3

Browse files
committed
Auto merge of #2168 - RalfJung:power, r=RalfJung
use is_power_of_two where appropriate
2 parents 57d8206 + a8e457f commit 9d418a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-cargo-miri/tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn page_size() {
6868

6969
// In particular, this checks that it is not 0.
7070
assert!(
71-
page_size.next_power_of_two() == page_size,
71+
page_size.is_power_of_two(),
7272
"page size not a power of two: {}",
7373
page_size
7474
);

0 commit comments

Comments
 (0)