From 07f12b6fb42c9176481047a40e49b2ff87cdaa03 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 2 May 2020 12:31:53 -0400 Subject: [PATCH] remove unnecessary logical not --- src/value/number.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/value/number.rs b/src/value/number.rs index 28c7e66..791cdef 100644 --- a/src/value/number.rs +++ b/src/value/number.rs @@ -172,7 +172,7 @@ impl Display for Number { let mut whole = self.val.to_integer().abs(); let has_decimal = !self.val.denom().is_one(); let mut frac = self.val.fract().abs(); - let mut dec = String::with_capacity(if !has_decimal { 0 } else { PRECISION + 1 }); + let mut dec = String::with_capacity(if has_decimal { PRECISION + 1 } else { 0 }); if has_decimal { for _ in 0..(PRECISION - 1) { frac *= BigInt::from(10);