Skip to content

Commit 91d181f

Browse files
committed
minor: fmt and clippy
1 parent e2daee6 commit 91d181f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

crates/parser/src/shortcuts.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,13 @@ impl Builder<'_, '_> {
221221
// we should emit an error node here
222222
(self.sink)(StrStep::Error { msg: "illegal float literal", pos: self.pos });
223223
(self.sink)(StrStep::Enter { kind: SyntaxKind::ERROR });
224-
(self.sink)(StrStep::Token { kind: SyntaxKind::FLOAT_NUMBER, text: text });
224+
(self.sink)(StrStep::Token { kind: SyntaxKind::FLOAT_NUMBER, text });
225225
(self.sink)(StrStep::Exit);
226226

227227
// move up
228228
(self.sink)(StrStep::Exit);
229229

230-
self.state = if has_pseudo_dot {
231-
State::Normal
232-
} else {
233-
State::PendingExit
234-
};
230+
self.state = if has_pseudo_dot { State::Normal } else { State::PendingExit };
235231
}
236232
}
237233

0 commit comments

Comments
 (0)