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> {
21
21
debug_assert ! ( len as usize <= ar. len( ) ) ;
22
22
unsafe { ar. get_unchecked ( ..len as usize ) }
23
23
}
24
- IxDynRepr :: Alloc ( ref ar) => & * ar,
24
+ IxDynRepr :: Alloc ( ref ar) => ar,
25
25
}
26
26
}
27
27
}
@@ -33,7 +33,7 @@ impl<T> DerefMut for IxDynRepr<T> {
33
33
debug_assert ! ( len as usize <= ar. len( ) ) ;
34
34
unsafe { ar. get_unchecked_mut ( ..len as usize ) }
35
35
}
36
- IxDynRepr :: Alloc ( ref mut ar) => & mut * ar,
36
+ IxDynRepr :: Alloc ( ref mut ar) => ar,
37
37
}
38
38
}
39
39
}
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ unsafe impl<'a> NdIndex<IxDyn> for &'a IxDyn {
216
216
217
217
unsafe impl < ' a > NdIndex < IxDyn > for & ' a [ Ix ] {
218
218
fn index_checked ( & self , dim : & IxDyn , strides : & IxDyn ) -> Option < isize > {
219
- stride_offset_checked ( dim. ix ( ) , strides. ix ( ) , * self )
219
+ stride_offset_checked ( dim. ix ( ) , strides. ix ( ) , self )
220
220
}
221
221
fn index_unchecked ( & self , strides : & IxDyn ) -> isize {
222
222
zip ( strides. ix ( ) , * self )
You can’t perform that action at this time.
0 commit comments