From 91d181feffc6970b9cc600c4e43ff9b06276c7b3 Mon Sep 17 00:00:00 2001 From: roife Date: Wed, 6 Mar 2024 23:12:27 +0800 Subject: [PATCH] minor: fmt and clippy --- crates/parser/src/shortcuts.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/parser/src/shortcuts.rs b/crates/parser/src/shortcuts.rs index 2beb3c3ef0d..cc2b63d1e66 100644 --- a/crates/parser/src/shortcuts.rs +++ b/crates/parser/src/shortcuts.rs @@ -221,17 +221,13 @@ impl Builder<'_, '_> { // we should emit an error node here (self.sink)(StrStep::Error { msg: "illegal float literal", pos: self.pos }); (self.sink)(StrStep::Enter { kind: SyntaxKind::ERROR }); - (self.sink)(StrStep::Token { kind: SyntaxKind::FLOAT_NUMBER, text: text }); + (self.sink)(StrStep::Token { kind: SyntaxKind::FLOAT_NUMBER, text }); (self.sink)(StrStep::Exit); // move up (self.sink)(StrStep::Exit); - self.state = if has_pseudo_dot { - State::Normal - } else { - State::PendingExit - }; + self.state = if has_pseudo_dot { State::Normal } else { State::PendingExit }; } }