Skip to content

Commit

Permalink
Fix clippy::needless_borrow lints (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Sep 4, 2024
1 parent 88d0f19 commit cd6fe97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/transform2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl<T, Src, Dst> Transform2D<T, Src, Dst> {
where
T: ApproxEq<T>,
{
<Self as ApproxEq<T>>::approx_eq(&self, &other)
<Self as ApproxEq<T>>::approx_eq(self, other)
}

/// Returns `true` if this transform is approximately equal to the other one, using
Expand All @@ -191,7 +191,7 @@ impl<T, Src, Dst> Transform2D<T, Src, Dst> {
where
T: ApproxEq<T>,
{
<Self as ApproxEq<T>>::approx_eq_eps(&self, &other, &eps)
<Self as ApproxEq<T>>::approx_eq_eps(self, other, eps)
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/transform3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ impl<T: ApproxEq<T>, Src, Dst> Transform3D<T, Src, Dst> {
/// The same as [`ApproxEq::approx_eq`] but available without importing trait.
#[inline]
pub fn approx_eq(&self, other: &Self) -> bool {
<Self as ApproxEq<T>>::approx_eq(&self, &other)
<Self as ApproxEq<T>>::approx_eq(self, other)
}

/// Returns `true` if this transform is approximately equal to the other one, using
Expand All @@ -1125,7 +1125,7 @@ impl<T: ApproxEq<T>, Src, Dst> Transform3D<T, Src, Dst> {
/// The same as [`ApproxEq::approx_eq_eps`] but available without importing trait.
#[inline]
pub fn approx_eq_eps(&self, other: &Self, eps: &T) -> bool {
<Self as ApproxEq<T>>::approx_eq_eps(&self, &other, &eps)
<Self as ApproxEq<T>>::approx_eq_eps(self, other, eps)
}
}

Expand Down

0 comments on commit cd6fe97

Please sign in to comment.