fix Copy trait bound with nalgebra 0.20

This commit is contained in:
Alexander Bulaev 2020-03-17 13:06:41 +03:00
parent c93109e28b
commit 036d7df3eb

View File

@ -10,7 +10,13 @@ use crate::interpolate::{
macro_rules! impl_interpolate_vector {
($($t:tt)*) => {
// implement Linear
impl<T> Linear<T> for $($t)*<T> where T: Scalar + ClosedAdd + ClosedSub + ClosedMul + ClosedDiv {
impl<T> Linear<T> for $($t)*<T>
where T: Scalar +
Copy +
ClosedAdd +
ClosedSub +
ClosedMul +
ClosedDiv {
#[inline(always)]
fn outer_mul(self, t: T) -> Self {
self * t