]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/option_if_let_else.rs
modify code
[rust.git] / clippy_lints / src / option_if_let_else.rs
index 953de0f72a86bbdd7d8ec75c8d73d63b3e8d061c..c9f807f2aa3aadfe756369ac9e889dc8cafaf182 100644 (file)
@@ -68,7 +68,7 @@
 
 /// Returns true iff the given expression is the result of calling `Result::ok`
 fn is_result_ok(cx: &LateContext<'_>, expr: &'_ Expr<'_>) -> bool {
-    if let ExprKind::MethodCall(path, _, &[ref receiver], _) = &expr.kind {
+    if let ExprKind::MethodCall(path, &[ref receiver], _) = &expr.kind {
         path.ident.name.as_str() == "ok"
             && is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(receiver), sym::Result)
     } else {