Skip to content

Commit c9e1cb4

Browse files
authored
Simplify
1 parent 747615d commit c9e1cb4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/ide/src/inlay_hints/closing_brace.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,9 @@ pub(super) fn hints(
6565
ast::BlockExpr(block_expr) => {
6666
block = block_expr.stmt_list()?;
6767
},
68-
ast::LoopExpr(loop_expr) => {
68+
ast::AnyHasLoopBody(loop_expr) => {
6969
block = loop_expr.loop_body()?.stmt_list()?;
7070
},
71-
ast::WhileExpr(while_expr) => {
72-
block = while_expr.loop_body()?.stmt_list()?;
73-
},
74-
ast::ForExpr(for_expr) => {
75-
block = for_expr.loop_body()?.stmt_list()?;
76-
},
7771
_ => return None,
7872
}
7973
}

0 commit comments

Comments
 (0)