mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Simplify
This commit is contained in:
parent
747615d95b
commit
c9e1cb4887
@ -65,15 +65,9 @@ pub(super) fn hints(
|
||||
ast::BlockExpr(block_expr) => {
|
||||
block = block_expr.stmt_list()?;
|
||||
},
|
||||
ast::LoopExpr(loop_expr) => {
|
||||
ast::AnyHasLoopBody(loop_expr) => {
|
||||
block = loop_expr.loop_body()?.stmt_list()?;
|
||||
},
|
||||
ast::WhileExpr(while_expr) => {
|
||||
block = while_expr.loop_body()?.stmt_list()?;
|
||||
},
|
||||
ast::ForExpr(for_expr) => {
|
||||
block = for_expr.loop_body()?.stmt_list()?;
|
||||
},
|
||||
_ => return None,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user