From 3869c24ec8eae092e9d2e59d77bc359769e86b7b Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Fri, 29 Mar 2013 10:42:54 +1100 Subject: [PATCH] Remove unnecessary dereference-references --- src/vec2.rs | 2 +- src/vec3.rs | 2 +- src/vec4.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vec2.rs b/src/vec2.rs index c6e6e67..34d1667 100644 --- a/src/vec2.rs +++ b/src/vec2.rs @@ -281,7 +281,7 @@ impl + Sub + Mul + Div + Neg> Mutabl } fn lerp_self(&mut self, other: &Vec2, amount: T) { - self.add_self_v(&other.sub_v(&*self).mul_t(amount)); + self.add_self_v(&other.sub_v(self).mul_t(amount)); } } diff --git a/src/vec3.rs b/src/vec3.rs index 7199a40..3575bc1 100644 --- a/src/vec3.rs +++ b/src/vec3.rs @@ -313,7 +313,7 @@ impl + Sub + Mul + Div + Neg> Mutabl } fn lerp_self(&mut self, other: &Vec3, amount: T) { - self.add_self_v(&other.sub_v(&*self).mul_t(amount)); + self.add_self_v(&other.sub_v(self).mul_t(amount)); } } diff --git a/src/vec4.rs b/src/vec4.rs index 34388f4..4fa3a2b 100644 --- a/src/vec4.rs +++ b/src/vec4.rs @@ -311,7 +311,7 @@ impl + Sub + Mul + Div + Neg> Mutab } fn lerp_self(&mut self, other: &Vec4, amount: T) { - self.add_self_v(&other.sub_v(&*self).mul_t(amount)); + self.add_self_v(&other.sub_v(self).mul_t(amount)); } }