Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy::needless_borrow lints #534

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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