From cd6fe9772bb3ed8bfaaaeb2415b7036ac95c035b Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 4 Sep 2024 14:11:38 +0700 Subject: [PATCH] Fix `clippy::needless_borrow` lints (#534) --- src/transform2d.rs | 4 ++-- src/transform3d.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/transform2d.rs b/src/transform2d.rs index 96b8e5f..8d23e99 100644 --- a/src/transform2d.rs +++ b/src/transform2d.rs @@ -179,7 +179,7 @@ impl Transform2D { where T: ApproxEq, { - >::approx_eq(&self, &other) + >::approx_eq(self, other) } /// Returns `true` if this transform is approximately equal to the other one, using @@ -191,7 +191,7 @@ impl Transform2D { where T: ApproxEq, { - >::approx_eq_eps(&self, &other, &eps) + >::approx_eq_eps(self, other, eps) } } diff --git a/src/transform3d.rs b/src/transform3d.rs index 936ebc3..52b1e32 100644 --- a/src/transform3d.rs +++ b/src/transform3d.rs @@ -1116,7 +1116,7 @@ impl, Src, Dst> Transform3D { /// The same as [`ApproxEq::approx_eq`] but available without importing trait. #[inline] pub fn approx_eq(&self, other: &Self) -> bool { - >::approx_eq(&self, &other) + >::approx_eq(self, other) } /// Returns `true` if this transform is approximately equal to the other one, using @@ -1125,7 +1125,7 @@ impl, Src, Dst> Transform3D { /// The same as [`ApproxEq::approx_eq_eps`] but available without importing trait. #[inline] pub fn approx_eq_eps(&self, other: &Self, eps: &T) -> bool { - >::approx_eq_eps(&self, &other, &eps) + >::approx_eq_eps(self, other, eps) } }