Skip to content

Commit e367f3a

Browse files
committed
Avoid clippy::needless_borrow in Inv
1 parent 69ba649 commit e367f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ impl<T: Clone + Num + Neg<Output = T>> Inv for Complex<T> {
10061006

10071007
#[inline]
10081008
fn inv(self) -> Self::Output {
1009-
(&self).inv()
1009+
Complex::inv(&self)
10101010
}
10111011
}
10121012

@@ -1015,7 +1015,7 @@ impl<'a, T: Clone + Num + Neg<Output = T>> Inv for &'a Complex<T> {
10151015

10161016
#[inline]
10171017
fn inv(self) -> Self::Output {
1018-
self.inv()
1018+
Complex::inv(self)
10191019
}
10201020
}
10211021

0 commit comments

Comments
 (0)