From 555a2cdd641a80b77a6e40df06a1735c228f5e2e Mon Sep 17 00:00:00 2001 From: Filip Filmar Date: Mon, 28 Sep 2020 17:28:15 -0700 Subject: [PATCH] Makes clippy happy --- components/pluralrules/src/operands.rs | 3 +-- components/pluralrules/tests/operands.rs | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/components/pluralrules/src/operands.rs b/components/pluralrules/src/operands.rs index 782c8e73562..f8af31c3dc2 100644 --- a/components/pluralrules/src/operands.rs +++ b/components/pluralrules/src/operands.rs @@ -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 })) } } diff --git a/components/pluralrules/tests/operands.rs b/components/pluralrules/tests/operands.rs index 0fe516f9abc..77923e1bb39 100644 --- a/components/pluralrules/tests/operands.rs +++ b/components/pluralrules/tests/operands.rs @@ -253,6 +253,4 @@ fn test_from_fixed_decimals() { &test ); } - - assert!(true); }