From 787816c75a10a2894566fabfb0d5265b19e2ed86 Mon Sep 17 00:00:00 2001 From: peiyun jin Date: Sun, 5 Nov 2023 21:00:22 -0500 Subject: [PATCH] fixed lint --- packages/injective-math/src/fp_decimal/exp.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/injective-math/src/fp_decimal/exp.rs b/packages/injective-math/src/fp_decimal/exp.rs index 4d343b60..9e2dfd2e 100644 --- a/packages/injective-math/src/fp_decimal/exp.rs +++ b/packages/injective-math/src/fp_decimal/exp.rs @@ -104,16 +104,8 @@ impl FPDecimal { fn check_log_2(x: &FPDecimal, exponent: &FPDecimal) -> bool { match x.log2() { - Some(v) => { - if v == *exponent { - return true; - } else { - return false; - } - } - None => { - return false; - } + Some(v) => v == *exponent, + None => false, } } let special_checks = [