Skip to content

Commit

Permalink
Bump deps, fix c/p error.
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Mar 5, 2018
1 parent 1cd2903 commit 02c2c90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ readme = "README.md"
[dependencies]

[dependencies.num-traits]
version = "0.2.0"
version = "0.2.1"
default-features = false
features = ["std"]

Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,16 +664,16 @@ impl<'a, T: Clone + Num + Neg<Output = T>> Neg for &'a Complex<T> {
}
}

impl<T: Clone + Num + Inv<Output = T>> Inv for Complex<T> {
impl<T: Clone + Num + Neg<Output = T>> Inv for Complex<T> {
type Output = Complex<T>;

#[inline]
fn inv(self) -> Complex<T> {
self.inv()
(&self).inv()
}
}

impl<'a, T: Clone + Num + Inv<Output = T>> Inv for &'a Complex<T> {
impl<'a, T: Clone + Num + Neg<Output = T>> Inv for &'a Complex<T> {
type Output = Complex<T>;

#[inline]
Expand Down

0 comments on commit 02c2c90

Please sign in to comment.