From 094c2d59dceae58184e7ae2fd6c5e5286f232bb1 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 21 Jul 2021 13:39:19 +0300 Subject: [PATCH] Format code. --- src/token/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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))