From e367f3ab7ccf4e75feb43fdb5ac9649904eb7ae9 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 7 May 2024 16:12:13 -0700 Subject: [PATCH] Avoid `clippy::needless_borrow` in `Inv` --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 608fbe3..661b67b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1006,7 +1006,7 @@ impl> Inv for Complex { #[inline] fn inv(self) -> Self::Output { - (&self).inv() + Complex::inv(&self) } } @@ -1015,7 +1015,7 @@ impl<'a, T: Clone + Num + Neg> Inv for &'a Complex { #[inline] fn inv(self) -> Self::Output { - self.inv() + Complex::inv(self) } }