Skip to content

Commit

Permalink
Makes clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
filmil committed Sep 29, 2020
1 parent 80573aa commit 2046255
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/pluralrules/src/operands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ impl PartialEq for PluralOperands {
|| (!zero && {
let abs_diff = (other.n - self.n).abs();
let rel_diff = abs_diff / self.n.abs(); // self.n.abs() != 0.0
let approx_eq = rel_diff < 1e-6;
approx_eq
rel_diff < 1e-6
}))
}
}
Expand Down

0 comments on commit 2046255

Please sign in to comment.