diff --git a/src/utils/number.rs b/src/utils/number.rs index a3164f3..37f715c 100644 --- a/src/utils/number.rs +++ b/src/utils/number.rs @@ -7,6 +7,7 @@ use peekmore::PeekMoreIterator; use crate::error::SassResult; use crate::Token; +#[derive(Debug)] pub(crate) struct ParsedNumber { pub num: String, pub dec_len: usize, diff --git a/src/value/parse.rs b/src/value/parse.rs index 68b7ef5..03a1b1f 100644 --- a/src/value/parse.rs +++ b/src/value/parse.rs @@ -3,7 +3,7 @@ use std::mem; use num_bigint::BigInt; use num_rational::BigRational; -use num_traits::{pow, One, ToPrimitive, Zero}; +use num_traits::{pow, One, ToPrimitive}; use codemap::{Span, Spanned}; @@ -631,7 +631,7 @@ impl Value { }; let times_ten = if val.times_ten.is_empty() { - BigInt::zero() + BigInt::one() } else { pow( BigInt::from(10),