From 898988136511b29dc93edc249c6666df3c5239fd Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Fri, 29 Mar 2013 10:37:25 +1100 Subject: [PATCH] Fix cargo cult syntax --- src/mat2.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mat2.rs b/src/mat2.rs index b8e9a99..9460841 100644 --- a/src/mat2.rs +++ b/src/mat2.rs @@ -246,20 +246,20 @@ impl + Add + Sub + Mul + Div + N #[inline(always)] fn mul_self_t(&mut self, value: T) { - &mut self.x.mul_self_t(value); - &mut self.y.mul_self_t(value); + self.x.mul_self_t(value); + self.y.mul_self_t(value); } #[inline(always)] fn add_self_m(&mut self, other: &Mat2) { - &mut self.x.add_self_v(&other[0]); - &mut self.y.add_self_v(&other[1]); + self.x.add_self_v(&other[0]); + self.y.add_self_v(&other[1]); } #[inline(always)] fn sub_self_m(&mut self, other: &Mat2) { - &mut self.x.sub_self_v(&other[0]); - &mut self.y.sub_self_v(&other[1]); + self.x.sub_self_v(&other[0]); + self.y.sub_self_v(&other[1]); } #[inline(always)] @@ -272,8 +272,8 @@ impl + Add + Sub + Mul + Div + N #[inline(always)] fn transpose_self(&mut self) { - &mut swap(&mut self.x.index_mut(1), &mut self.y.index_mut(0)); - &mut swap(&mut self.y.index_mut(0), &mut self.x.index_mut(1)); + swap(self.x.index_mut(1), self.y.index_mut(0)); + swap(self.y.index_mut(0), self.x.index_mut(1)); } }