mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Simplify
This commit is contained in:
parent
747615d95b
commit
c9e1cb4887
1 changed files with 1 additions and 7 deletions
|
@ -65,15 +65,9 @@ pub(super) fn hints(
|
||||||
ast::BlockExpr(block_expr) => {
|
ast::BlockExpr(block_expr) => {
|
||||||
block = block_expr.stmt_list()?;
|
block = block_expr.stmt_list()?;
|
||||||
},
|
},
|
||||||
ast::LoopExpr(loop_expr) => {
|
ast::AnyHasLoopBody(loop_expr) => {
|
||||||
block = loop_expr.loop_body()?.stmt_list()?;
|
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,
|
_ => return None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue