Skip to content

Commit c264ecf

Browse files
committed
Change for_each to for loop in slice_each_axis_inplace
1 parent 1f0a72a commit c264ecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/impl_methods.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ where
557557
where
558558
F: FnMut(AxisDescription) -> Slice,
559559
{
560-
(0..self.ndim()).for_each(|ax| {
560+
for ax in 0..self.ndim() {
561561
self.slice_axis_inplace(
562562
Axis(ax),
563563
f(AxisDescription {
@@ -566,7 +566,7 @@ where
566566
stride: self.strides[ax] as isize,
567567
}),
568568
)
569-
})
569+
}
570570
}
571571

572572
/// Return a reference to the element at `index`, or return `None`

0 commit comments

Comments
 (0)