From b8800ccd15c76e78a80cfc83f53f96f3dbbb58a9 Mon Sep 17 00:00:00 2001 From: Yuri6037 Date: Sun, 24 Oct 2021 21:52:35 +0200 Subject: [PATCH] Update src/geometry/scale_conversion.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Crozet --- src/geometry/scale_conversion.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geometry/scale_conversion.rs b/src/geometry/scale_conversion.rs index 96ddb2ec..cce0c6f1 100644 --- a/src/geometry/scale_conversion.rs +++ b/src/geometry/scale_conversion.rs @@ -102,9 +102,9 @@ where fn from_superset_unchecked( m: &OMatrix, U1>, DimNameSum, U1>>, ) -> Self { - let t = m.fixed_slice::(0, D); + let t = m.column().fixed_slice::(0, D).into_owned(); Self { - vector: crate::convert_unchecked(t.into_owned()), + vector: crate::convert_unchecked(t), } } }