Skip to content

Commit

Permalink
Avoid clippy::needless_borrow in Inv
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 7, 2024
1 parent 69ba649 commit e367f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ impl<T: Clone + Num + Neg<Output = T>> Inv for Complex<T> {

#[inline]
fn inv(self) -> Self::Output {
(&self).inv()
Complex::inv(&self)
}
}

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

#[inline]
fn inv(self) -> Self::Output {
self.inv()
Complex::inv(self)
}
}

Expand Down

0 comments on commit e367f3a

Please sign in to comment.