Remove useless into_owned.

This commit is contained in:
Sébastien Crozet 2021-10-25 09:57:58 +02:00 committed by GitHub
parent 209f77ccaf
commit 4be7db36fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ where
fn from_superset_unchecked( fn from_superset_unchecked(
m: &OMatrix<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, m: &OMatrix<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>,
) -> Self { ) -> Self {
let v = m.fixed_slice::<D, D>(0, 0).into_owned().diagonal(); let v = m.fixed_slice::<D, D>(0, 0).diagonal();
Self { Self {
vector: crate::convert_unchecked(v), vector: crate::convert_unchecked(v),
} }