From 1188f59102464ef229a72ce21f31535f1ba815d6 Mon Sep 17 00:00:00 2001 From: Kit Freddura Date: Sun, 2 Oct 2016 13:53:10 -0700 Subject: [PATCH] fixed struct elison --- clippy_lints/src/ok_if_let.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/ok_if_let.rs b/clippy_lints/src/ok_if_let.rs index 2bb162685ef..f77fec0a43e 100644 --- a/clippy_lints/src/ok_if_let.rs +++ b/clippy_lints/src/ok_if_let.rs @@ -35,7 +35,7 @@ impl LateLintPass for OkIfLetPass { fn check_expr(&mut self, cx: &LateContext, expr: &Expr) { if_let_chain! {[ //begin checking variables let ExprMatch(ref op, ref body, ref source) = expr.node, //test if expr is a match - let MatchSource::IfLetDesugar { contains_else_clause: _ } = *source, //test if it is an If Let + let MatchSource::IfLetDesugar { .. } = *source, //test if it is an If Let let ExprMethodCall(_, _, ref result_types) = op.node, //check is expr.ok() has type Result.ok() let PatKind::TupleStruct(ref x, ref y, _) = body[0].pats[0].node, //get operation let Some(_) = method_chain_args(op, &["ok"]) //test to see if using ok() methoduse std::marker::Sized; -- 2.44.0