File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ impl<T> Deref for IxDynRepr<T> {
2121 debug_assert ! ( len as usize <= ar. len( ) ) ;
2222 unsafe { ar. get_unchecked ( ..len as usize ) }
2323 }
24- IxDynRepr :: Alloc ( ref ar) => & * ar,
24+ IxDynRepr :: Alloc ( ref ar) => ar,
2525 }
2626 }
2727}
@@ -33,7 +33,7 @@ impl<T> DerefMut for IxDynRepr<T> {
3333 debug_assert ! ( len as usize <= ar. len( ) ) ;
3434 unsafe { ar. get_unchecked_mut ( ..len as usize ) }
3535 }
36- IxDynRepr :: Alloc ( ref mut ar) => & mut * ar,
36+ IxDynRepr :: Alloc ( ref mut ar) => ar,
3737 }
3838 }
3939}
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ unsafe impl<'a> NdIndex<IxDyn> for &'a IxDyn {
230230
231231unsafe impl < ' a > NdIndex < IxDyn > for & ' a [ Ix ] {
232232 fn index_checked ( & self , dim : & IxDyn , strides : & IxDyn ) -> Option < isize > {
233- stride_offset_checked ( dim. ix ( ) , strides. ix ( ) , * self )
233+ stride_offset_checked ( dim. ix ( ) , strides. ix ( ) , self )
234234 }
235235 fn index_unchecked ( & self , strides : & IxDyn ) -> isize {
236236 zip ( strides. ix ( ) , * self )
You can’t perform that action at this time.
0 commit comments