Remove useless into_owned
.
This commit is contained in:
parent
209f77ccaf
commit
4be7db36fd
@ -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),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user