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)); } }