Add more inline(always) to fix opt-level=z test on wasm32

This commit is contained in:
Ben Kimock 2024-02-15 00:26:45 -05:00
parent 581e171773
commit 4a12f82785

View File

@ -390,7 +390,7 @@ unsafe fn get_unchecked_mut(self, slice: *mut [T]) -> *mut [T] {
}
}
#[inline]
#[inline(always)]
fn index(self, slice: &[T]) -> &[T] {
if self.start > self.end {
slice_index_order_fail(self.start, self.end);
@ -440,7 +440,7 @@ unsafe fn get_unchecked_mut(self, slice: *mut [T]) -> *mut [T] {
unsafe { (0..self.end).get_unchecked_mut(slice) }
}
#[inline]
#[inline(always)]
fn index(self, slice: &[T]) -> &[T] {
(0..self.end).index(slice)
}