mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-25 04:44:22 +00:00
Tidy formatted
This commit is contained in:
parent
d513b4c8ba
commit
ef2eabbfa8
1 changed files with 3 additions and 3 deletions
|
@ -263,14 +263,14 @@ pub(crate) fn fixup_syntax(node: &SyntaxNode) -> SyntaxFixups {
|
||||||
};
|
};
|
||||||
|
|
||||||
let [pat, in_token, iter] = [
|
let [pat, in_token, iter] = [
|
||||||
(SyntaxKind::UNDERSCORE, "_"),
|
(SyntaxKind::UNDERSCORE, "_"),
|
||||||
(SyntaxKind::IN_KW, "in"),
|
(SyntaxKind::IN_KW, "in"),
|
||||||
(SyntaxKind::IDENT, "__ra_fixup")
|
(SyntaxKind::IDENT, "__ra_fixup")
|
||||||
].map(|(kind, text)| SyntheticToken { kind, text: text.into(), range: end_range, id: EMPTY_ID});
|
].map(|(kind, text)| SyntheticToken { kind, text: text.into(), range: end_range, id: EMPTY_ID});
|
||||||
|
|
||||||
if it.pat().is_none() && it.in_token().is_none() && it.iterable().is_none() {
|
if it.pat().is_none() && it.in_token().is_none() && it.iterable().is_none() {
|
||||||
append.insert(for_token.into(), vec![pat, in_token, iter]);
|
append.insert(for_token.into(), vec![pat, in_token, iter]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tricky: add logic to add in just a pattern or iterable if not all
|
// Tricky: add logic to add in just a pattern or iterable if not all
|
||||||
// the pieces are missing
|
// the pieces are missing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue