We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be9382f commit ebd3a0bCopy full SHA for ebd3a0b
1 file changed
rule-preprocessor/src/syntactic.rs
@@ -435,12 +435,11 @@ impl<'a> FnIrBuilder<'a> {
435
436
let mut ctx = FragmentCtx::new(self, params, generic_names);
437
for child in stmt_list.syntax().children_with_tokens() {
438
- if let ra_ap_syntax::NodeOrToken::Token(ref t) = child {
439
- if (t.kind() == SyntaxKind::L_CURLY || t.kind() == SyntaxKind::R_CURLY)
440
- && t.parent().as_ref() == Some(stmt_list.syntax())
441
- {
442
- continue;
443
- }
+ if let ra_ap_syntax::NodeOrToken::Token(ref t) = child
+ && (t.kind() == SyntaxKind::L_CURLY || t.kind() == SyntaxKind::R_CURLY)
+ && t.parent().as_ref() == Some(stmt_list.syntax())
+ {
+ continue;
444
}
445
ctx.visit(child);
446
0 commit comments