style(lint): fix clippy warnings

This commit is contained in:
Luis Moreno
2021-04-27 09:32:01 -04:00
parent 7f44b93838
commit d9814c0918
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -524,9 +524,9 @@ impl<T: RealNumber> PartialEq for DenseMatrix<T> {
}
}
impl<T: RealNumber> Into<Vec<T>> for DenseMatrix<T> {
fn into(self) -> Vec<T> {
self.values
impl<T: RealNumber> From<DenseMatrix<T>> for Vec<T> {
fn from(dense_matrix: DenseMatrix<T>) -> Vec<T> {
dense_matrix.values
}
}