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 555a2cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 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
2 changes: 0 additions & 2 deletions components/pluralrules/tests/operands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,4 @@ fn test_from_fixed_decimals() {
&test
);
}

assert!(true);
}

0 comments on commit 555a2cd

Please sign in to comment.