mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
minor: fmt and clippy
This commit is contained in:
parent
e2daee61bc
commit
91d181feff
1 changed files with 2 additions and 6 deletions
|
@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue