Skip to content

Commit

Permalink
remove deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
morenol committed Nov 25, 2024
1 parent 5448ede commit c6e6c1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linalg/ndarray/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ impl<T: Debug + Display + Copy + Sized> Array2<T> for ArrayBase<OwnedRepr<T>, Ix

fn from_iterator<I: Iterator<Item = T>>(iter: I, nrows: usize, ncols: usize, axis: u8) -> Self {
let a = Array::from_iter(iter.take(nrows * ncols))
.into_shape((nrows, ncols))
.to_shape((nrows, ncols))
.unwrap();
match axis {
0 => a,

Check failure on line 131 in src/linalg/ndarray/matrix.rs

View workflow job for this annotation

GitHub Actions / lint

mismatched types

Check failure on line 131 in src/linalg/ndarray/matrix.rs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, i686-unknown-linux-gnu)

mismatched types

Check failure on line 131 in src/linalg/ndarray/matrix.rs

View workflow job for this annotation

GitHub Actions / coverage

mismatched types
_ => a.reversed_axes().into_shape((nrows, ncols)).unwrap(),
_ => a.reversed_axes().to_shape((nrows, ncols)).unwrap(),
}
}

Expand Down

0 comments on commit c6e6c1a

Please sign in to comment.