Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 1833424

Browse files
author
Jethro Beekman
committed
Fix build failure with latest nightly
1 parent 41c43da commit 1833424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libm/src/math/pow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ mod tests {
604604

605605
// Factoring -1 out:
606606
// (negative anything ^ integer should be (-1 ^ integer) * (positive anything ^ integer))
607-
&[POS_ZERO, NEG_ZERO, POS_ONE, NEG_ONE, POS_EVENS, NEG_EVENS]
607+
(&[POS_ZERO, NEG_ZERO, POS_ONE, NEG_ONE, POS_EVENS, NEG_EVENS])
608608
.iter()
609609
.for_each(|int_set| {
610610
int_set.iter().for_each(|int| {
@@ -616,7 +616,7 @@ mod tests {
616616

617617
// Negative base (imaginary results):
618618
// (-anything except 0 and Infinity ^ non-integer should be NAN)
619-
&NEG[1..(NEG.len() - 1)].iter().for_each(|set| {
619+
(&NEG[1..(NEG.len() - 1)]).iter().for_each(|set| {
620620
set.iter().for_each(|val| {
621621
test_sets(&ALL[3..7], &|v: f64| pow(*val, v), &|_| NAN);
622622
})

0 commit comments

Comments
 (0)