We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb5fd98 commit 6687f55Copy full SHA for 6687f55
src/tools/clippy/tests/ui/author/if.stdout
@@ -32,11 +32,11 @@ if_chain! {
32
}
33
if_chain! {
34
if let ExprKind::If(cond, then, Some(else_expr)) = expr.kind;
35
- if let ExprKind::Let(pat, expr1, _) = cond.kind;
36
- if let PatKind::Lit(lit_expr) = pat.kind;
+ if let ExprKind::Let(let_expr) = cond.kind;
+ if let PatKind::Lit(lit_expr) = let_expr.pat.kind;
37
if let ExprKind::Lit(ref lit) = lit_expr.kind;
38
if let LitKind::Bool(true) = lit.node;
39
- if let ExprKind::Path(ref qpath) = expr1.kind;
+ if let ExprKind::Path(ref qpath) = let_expr.init.kind;
40
if match_qpath(qpath, &["a"]);
41
if let ExprKind::Block(block, None) = then.kind;
42
if block.stmts.is_empty();
0 commit comments