|
1 | 1 | if_chain! { |
2 | 2 | if let ExprKind::Block(ref block) = expr.node; |
3 | 3 | if let StmtKind::Local(ref local) = block.node; |
4 | | - if let Some(ref init) = local.init |
| 4 | + if let Some(ref init) = local.init; |
5 | 5 | if let ExprKind::Match(ref expr, ref arms, MatchSource::ForLoopDesugar) = init.node; |
6 | 6 | if let ExprKind::Call(ref func, ref args) = expr.node; |
7 | 7 | if let ExprKind::Path(ref path) = func.node; |
@@ -41,15 +41,15 @@ if_chain! { |
41 | 41 | if let PatKind::Path(ref path7) = arms1[1].pats[0].node; |
42 | 42 | if match_qpath(path7, &["{{root}}", "std", "option", "Option", "None"]); |
43 | 43 | if let StmtKind::Local(ref local2) = path7.node; |
44 | | - if let Some(ref init1) = local2.init |
| 44 | + if let Some(ref init1) = local2.init; |
45 | 45 | if let ExprKind::Path(ref path8) = init1.node; |
46 | 46 | if match_qpath(path8, &["__next"]); |
47 | 47 | if let PatKind::Binding(BindingAnnotation::Unannotated, _, name1, None) = local2.pat.node; |
48 | 48 | if name1.node.as_str() == "y"; |
49 | 49 | if let StmtKind::Expr(ref e1, _) = local2.pat.node |
50 | 50 | if let ExprKind::Block(ref block1) = e1.node; |
51 | 51 | if let StmtKind::Local(ref local3) = block1.node; |
52 | | - if let Some(ref init2) = local3.init |
| 52 | + if let Some(ref init2) = local3.init; |
53 | 53 | if let ExprKind::Path(ref path9) = init2.node; |
54 | 54 | if match_qpath(path9, &["y"]); |
55 | 55 | if let PatKind::Binding(BindingAnnotation::Unannotated, _, name2, None) = local3.pat.node; |
|
0 commit comments