Skip to content

Commit 82453df

Browse files
committed
Remove redundant len_of call
1 parent 8301c25 commit 82453df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numeric/impl_numeric.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl<A, S, D> ArrayBase<S, D>
103103
.and(self.lanes(axis))
104104
.apply(|sum, lane| *sum = lane.sum());
105105
res
106-
} else if self.len_of(axis) <= numeric_util::NAIVE_SUM_THRESHOLD {
106+
} else if n <= numeric_util::NAIVE_SUM_THRESHOLD {
107107
self.fold_axis(axis, A::zero(), |acc, x| acc.clone() + x.clone())
108108
} else {
109109
let (v1, v2) = self.view().split_at(axis, n / 2);

0 commit comments

Comments
 (0)