1From c18c704856ffa8b3349401300e66796d4cc8d4f5 Mon Sep 17 00:00:00 2001 2From: Jethro Beekman <jethro@fortanix.com> 3Date: Thu, 24 Jun 2021 15:58:36 +0200 4Subject: [PATCH] Fix build failure with latest nightly 5 6--- 7 src/math/pow.rs | 4 ++-- 8 1 file changed, 2 insertions(+), 2 deletions(-) 9 10diff --git a/src/math/pow.rs b/src/math/pow.rs 11index c7fd0df..f79680a 100644 12--- a/src/math/pow.rs 13+++ b/src/math/pow.rs 14@@ -604,7 +604,7 @@ mod tests { 15 16 // Factoring -1 out: 17 // (negative anything ^ integer should be (-1 ^ integer) * (positive anything ^ integer)) 18- &[POS_ZERO, NEG_ZERO, POS_ONE, NEG_ONE, POS_EVENS, NEG_EVENS] 19+ (&[POS_ZERO, NEG_ZERO, POS_ONE, NEG_ONE, POS_EVENS, NEG_EVENS]) 20 .iter() 21 .for_each(|int_set| { 22 int_set.iter().for_each(|int| { 23@@ -616,7 +616,7 @@ mod tests { 24 25 // Negative base (imaginary results): 26 // (-anything except 0 and Infinity ^ non-integer should be NAN) 27- &NEG[1..(NEG.len() - 1)].iter().for_each(|set| { 28+ (&NEG[1..(NEG.len() - 1)]).iter().for_each(|set| { 29 set.iter().for_each(|val| { 30 test_sets(&ALL[3..7], &|v: f64| pow(*val, v), &|_| NAN); 31 }) 32