Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mec-iS committed Mar 4, 2024
1 parent ea74b32 commit 5667847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linalg/basic/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl<T: Debug + Display + Copy + Sized> DenseMatrix<T> {
}

/// New instance of `DenseMatrix` from 2d vector.
pub fn from_2d_vec(values: &Vec<Vec<T>>) -> Result<Self, Failed> {
pub fn from_2d_vec(values: &[Vec<T>]) -> Result<Self, Failed> {
if values.is_empty() || values[0].is_empty() {
Err(Failed::input(
"The 2d vec provided is empty; cannot instantiate the matrix",
Expand Down

0 comments on commit 5667847

Please sign in to comment.