Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/shortcuts.rs')
-rw-r--r--crates/parser/src/shortcuts.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/parser/src/shortcuts.rs b/crates/parser/src/shortcuts.rs
index 2beb3c3ef0..cc2b63d1e6 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 };
}
}