Skip to content

Commit

Permalink
Remove unnecessary & in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner314 committed Mar 15, 2021
1 parent 85e6573 commit 0ec7c59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fn test_slice_dyninput_array_fixed() {
#[test]
fn test_slice_array_dyn() {
let mut arr = Array3::<f64>::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),
Expand All @@ -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),
Expand All @@ -241,7 +241,7 @@ fn test_slice_array_dyn() {
#[test]
fn test_slice_dyninput_array_dyn() {
let mut arr = Array3::<f64>::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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion tests/oper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ec7c59

Please sign in to comment.