mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
fix line format
This commit is contained in:
parent
7bc2e1d60d
commit
c1b65ec363
1 changed files with 2 additions and 1 deletions
|
@ -2218,7 +2218,8 @@ fn is_conditional(expr: &Expr) -> bool {
|
||||||
fn is_nested(cx: &LateContext<'_, '_>, match_expr: &Expr, iter_expr: &Expr) -> bool {
|
fn is_nested(cx: &LateContext<'_, '_>, match_expr: &Expr, iter_expr: &Expr) -> bool {
|
||||||
if_chain! {
|
if_chain! {
|
||||||
if let Some(loop_block) = get_enclosing_block(cx, match_expr.hir_id);
|
if let Some(loop_block) = get_enclosing_block(cx, match_expr.hir_id);
|
||||||
if let Some(Node::Expr(loop_expr)) = cx.tcx.hir().find_by_hir_id(cx.tcx.hir().get_parent_node_by_hir_id(loop_block.hir_id));
|
let parent_node = cx.tcx.hir().get_parent_node_by_hir_id(loop_block.hir_id);
|
||||||
|
if let Some(Node::Expr(loop_expr)) = cx.tcx.hir().find_by_hir_id(parent_node);
|
||||||
then {
|
then {
|
||||||
return is_loop_nested(cx, loop_expr, iter_expr)
|
return is_loop_nested(cx, loop_expr, iter_expr)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue