about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfprasx <felix725@gmail.com>2022-08-03 16:27:43 -0400
committerfprasx <felix725@gmail.com>2022-08-03 16:27:43 -0400
commitef2eabbfa84fb11deda705df724b28ef3431256c (patch)
tree77cb5b85d43bb6125dbf05f102416686196a8566
parentd513b4c8baaf2c71e5f13ce790bd0083ccb81a64 (diff)
downloadrust-ef2eabbfa84fb11deda705df724b28ef3431256c.tar.gz
rust-ef2eabbfa84fb11deda705df724b28ef3431256c.zip
Tidy formatted
-rw-r--r--crates/hir-expand/src/fixup.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-expand/src/fixup.rs b/crates/hir-expand/src/fixup.rs
index ade28f27bf1..cd02c802e50 100644
--- a/crates/hir-expand/src/fixup.rs
+++ b/crates/hir-expand/src/fixup.rs
@@ -263,14 +263,14 @@ pub(crate) fn fixup_syntax(node: &SyntaxNode) -> SyntaxFixups {
                     };
 
                     let [pat, in_token, iter] = [
-                        (SyntaxKind::UNDERSCORE, "_"), 
-                        (SyntaxKind::IN_KW, "in"), 
+                        (SyntaxKind::UNDERSCORE, "_"),
+                        (SyntaxKind::IN_KW, "in"),
                         (SyntaxKind::IDENT, "__ra_fixup")
                     ].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() {
                         append.insert(for_token.into(), vec![pat, in_token, iter]);
-                    } 
+                    }
 
                     // Tricky: add logic to add in just a pattern or iterable if not all
                     // the pieces are missing