diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index b55227fb..9a2bc2ca 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -285,11 +285,11 @@ impl<'a, N: Copy + Mul + Add + Zero> Mul> #[inline] fn mul(self, right: DMat) -> DMat { - right * self + self * (&right) } } -impl<'a, N: Copy + Mul + Add + Zero> Mul<&'a DMat> for &'a DMat { +impl<'a, 'b, N: Copy + Mul + Add + Zero> Mul<&'b DMat> for &'a DMat { type Output = DMat; #[inline]