Skip to content

Commit fb4f9a0

Browse files
committed
Fix pattern match of ExprKind::MethodCall
1 parent 40ee620 commit fb4f9a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/map_identity.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MapIdentity {
6161
/// map(). Otherwise, returns None.
6262
fn get_map_argument<'a>(cx: &LateContext<'_, '_>, expr: &'a Expr<'a>) -> Option<&'a [Expr<'a>]> {
6363
if_chain! {
64-
if let ExprKind::MethodCall(ref method, _, ref args) = expr.kind;
64+
if let ExprKind::MethodCall(ref method, _, ref args, _) = expr.kind;
6565
if args.len() == 2 && method.ident.as_str() == "map";
6666
let caller_ty = cx.tables.expr_ty(&args[0]);
6767
if match_trait_method(cx, expr, &paths::ITERATOR)

0 commit comments

Comments
 (0)