Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f12aca9

Browse files
authored
Simplify
1 parent a95ff26 commit f12aca9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/tools/rust-analyzer/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)