From 036d7df3ebd0711052bc52080264a51062e21b3f Mon Sep 17 00:00:00 2001 From: Alexander Bulaev Date: Tue, 17 Mar 2020 13:06:41 +0300 Subject: [PATCH] fix Copy trait bound with nalgebra 0.20 --- src/nalgebra.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nalgebra.rs b/src/nalgebra.rs index 67c4580..2b66ced 100644 --- a/src/nalgebra.rs +++ b/src/nalgebra.rs @@ -10,7 +10,13 @@ use crate::interpolate::{ macro_rules! impl_interpolate_vector { ($($t:tt)*) => { // implement Linear - impl Linear for $($t)* where T: Scalar + ClosedAdd + ClosedSub + ClosedMul + ClosedDiv { + impl Linear for $($t)* + where T: Scalar + + Copy + + ClosedAdd + + ClosedSub + + ClosedMul + + ClosedDiv { #[inline(always)] fn outer_mul(self, t: T) -> Self { self * t