• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/src/math/pow.rs b/src/math/pow.rs
2index 3020b1a..6a19ae6 100644
3--- a/src/math/pow.rs
4+++ b/src/math/pow.rs
5@@ -608,7 +608,7 @@ mod tests {
6
7         // Factoring -1 out:
8         // (negative anything ^ integer should be (-1 ^ integer) * (positive anything ^ integer))
9-        &[POS_ZERO, NEG_ZERO, POS_ONE, NEG_ONE, POS_EVENS, NEG_EVENS]
10+        (&[POS_ZERO, NEG_ZERO, POS_ONE, NEG_ONE, POS_EVENS, NEG_EVENS])
11             .iter()
12             .for_each(|int_set| {
13                 int_set.iter().for_each(|int| {
14@@ -620,7 +620,7 @@ mod tests {
15
16         // Negative base (imaginary results):
17         // (-anything except 0 and Infinity ^ non-integer should be NAN)
18-        &NEG[1..(NEG.len() - 1)].iter().for_each(|set| {
19+        (&NEG[1..(NEG.len() - 1)]).iter().for_each(|set| {
20             set.iter().for_each(|val| {
21                 test_sets(&ALL[3..7], &|v: f64| pow(*val, v), &|_| NAN);
22             })
23