Add more inline(always) to fix opt-level=z test on wasm32
This commit is contained in:
parent
581e171773
commit
4a12f82785
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user