Skip to content

Commit f8f48ce

Browse files
committed
MAINT: Fix unused mut warning
1 parent 3cc448d commit f8f48ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dimension/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub fn can_index_slice<A, D: Dimension>(data: &[A], dim: &D, strides: &D)
8787
}
8888
// check that the maximum index is in bounds
8989
let mut last_index = dim.clone();
90-
for mut index in last_index.slice_mut().iter_mut() {
90+
for index in last_index.slice_mut().iter_mut() {
9191
*index -= 1;
9292
}
9393
if let Some(offset) = stride_offset_checked_arithmetic(dim,

0 commit comments

Comments
 (0)