Skip to content

Commit 4f3eb7e

Browse files
fix non debug assertion build
1 parent 1c4fd07 commit 4f3eb7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/bound.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,7 @@ impl<'n, T> core::ops::Index<Range<IdxInc<'n>>> for Array<'n, T> {
837837
}
838838
#[cfg(not(debug_assertions))]
839839
unsafe {
840-
self.0
841-
.inner
840+
self.unbound
842841
.get_unchecked(idx.start.unbound()..idx.end.unbound())
843842
}
844843
}
@@ -852,8 +851,7 @@ impl<'n, T> core::ops::IndexMut<Range<IdxInc<'n>>> for Array<'n, T> {
852851
}
853852
#[cfg(not(debug_assertions))]
854853
unsafe {
855-
self.0
856-
.inner
854+
self.unbound
857855
.get_unchecked_mut(idx.start.unbound()..idx.end.unbound())
858856
}
859857
}

0 commit comments

Comments
 (0)