Skip to content

Commit ebd3a0b

Browse files
nunoplopesgithub-actions[bot]
authored andcommitted
Automatically apply formatting and lint fixes
1 parent be9382f commit ebd3a0b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

rule-preprocessor/src/syntactic.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,11 @@ impl<'a> FnIrBuilder<'a> {
435435

436436
let mut ctx = FragmentCtx::new(self, params, generic_names);
437437
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-
}
438+
if let ra_ap_syntax::NodeOrToken::Token(ref t) = child
439+
&& (t.kind() == SyntaxKind::L_CURLY || t.kind() == SyntaxKind::R_CURLY)
440+
&& t.parent().as_ref() == Some(stmt_list.syntax())
441+
{
442+
continue;
444443
}
445444
ctx.visit(child);
446445
}

0 commit comments

Comments
 (0)