diff --git a/tests/array.rs b/tests/array.rs index fa5da4419..1cbd34e34 100644 --- a/tests/array.rs +++ b/tests/array.rs @@ -219,7 +219,7 @@ fn test_slice_dyninput_array_fixed() { #[test] fn test_slice_array_dyn() { let mut arr = Array3::::zeros((5, 2, 5)); - let info = &SliceInfo::<_, Ix3, IxDyn>::try_from([ + let info = SliceInfo::<_, Ix3, IxDyn>::try_from([ AxisSliceInfo::from(1..), AxisSliceInfo::from(1), AxisSliceInfo::from(NewAxis), @@ -229,7 +229,7 @@ fn test_slice_array_dyn() { arr.slice(info); arr.slice_mut(info); arr.view().slice_move(info); - let info2 = &SliceInfo::<_, Ix3, IxDyn>::try_from([ + let info2 = SliceInfo::<_, Ix3, IxDyn>::try_from([ AxisSliceInfo::from(1..), AxisSliceInfo::from(1), AxisSliceInfo::from(..).step_by(2), @@ -241,7 +241,7 @@ fn test_slice_array_dyn() { #[test] fn test_slice_dyninput_array_dyn() { let mut arr = Array3::::zeros((5, 2, 5)).into_dyn(); - let info = &SliceInfo::<_, Ix3, IxDyn>::try_from([ + let info = SliceInfo::<_, Ix3, IxDyn>::try_from([ AxisSliceInfo::from(1..), AxisSliceInfo::from(1), AxisSliceInfo::from(NewAxis), @@ -251,7 +251,7 @@ fn test_slice_dyninput_array_dyn() { arr.slice(info); arr.slice_mut(info); arr.view().slice_move(info); - let info2 = &SliceInfo::<_, Ix3, IxDyn>::try_from([ + let info2 = SliceInfo::<_, Ix3, IxDyn>::try_from([ AxisSliceInfo::from(1..), AxisSliceInfo::from(1), AxisSliceInfo::from(..).step_by(2), @@ -273,7 +273,7 @@ fn test_slice_dyninput_vec_fixed() { arr.slice(info); arr.slice_mut(info); arr.view().slice_move(info); - let info2 = &SliceInfo::<_, Ix3, Ix2>::try_from(vec![ + let info2 = SliceInfo::<_, Ix3, Ix2>::try_from(vec![ AxisSliceInfo::from(1..), AxisSliceInfo::from(1), AxisSliceInfo::from(..).step_by(2), @@ -295,7 +295,7 @@ fn test_slice_dyninput_vec_dyn() { arr.slice(info); arr.slice_mut(info); arr.view().slice_move(info); - let info2 = &SliceInfo::<_, Ix3, IxDyn>::try_from(vec![ + let info2 = SliceInfo::<_, Ix3, IxDyn>::try_from(vec![ AxisSliceInfo::from(1..), AxisSliceInfo::from(1), AxisSliceInfo::from(..).step_by(2), diff --git a/tests/oper.rs b/tests/oper.rs index b91a9bd85..3533faa8e 100644 --- a/tests/oper.rs +++ b/tests/oper.rs @@ -596,7 +596,7 @@ fn scaled_add_3() { { let mut av = a.slice_mut(s![..;s1, ..;s2]); - let c = c.slice(&SliceInfo::<_, IxDyn, IxDyn>::try_from(cslice).unwrap()); + let c = c.slice(SliceInfo::<_, IxDyn, IxDyn>::try_from(cslice).unwrap()); let mut answerv = answer.slice_mut(s![..;s1, ..;s2]); answerv += &(beta * &c);