diff --git a/src/token/mod.rs b/src/token/mod.rs index 62a806a..2dd0f22 100644 --- a/src/token/mod.rs +++ b/src/token/mod.rs @@ -360,11 +360,12 @@ fn partial_tokens_to_tokens(mut tokens: &[PartialToken]) -> EvalexprResulte{+,-}`, // for example [Literal("10e"), Minus, Literal("3")] => "1e-3".parse(). match (second, third) { - (Some(s), Some(t)) - if s == PartialToken::Minus || s == PartialToken::Plus => + (Some(second), Some(third)) + if second == PartialToken::Minus + || second == PartialToken::Plus => { if let Ok(number) = - format!("{}{}{}", literal, s, t).parse::() + format!("{}{}{}", literal, second, third).parse::() { cutoff = 3; Some(Token::Float(number))