diff options
| author | bors <bors@rust-lang.org> | 2022-09-05 16:21:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-05 16:21:40 +0000 |
| commit | 2ccf843471131e48ce1bc78a93ca2829590ff741 (patch) | |
| tree | 08bd7a843d1776cba12547afd3d9a8c13aa3fd79 /clippy_lints/src/methods/map_clone.rs | |
| parent | 5ea99770d81504a42b970dc20778a8369073bf6a (diff) | |
| parent | 8931da40e304f071d01ed59a312561a7d0a6e024 (diff) | |
Auto merge of #101261 - TaKO8Ki:separate-receiver-from-arguments-in-hir, r=cjgillot
Separate the receiver from arguments in HIR Related to #100232 cc `@cjgillot`
Diffstat (limited to 'clippy_lints/src/methods/map_clone.rs')
| -rw-r--r-- | clippy_lints/src/methods/map_clone.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/map_clone.rs b/clippy_lints/src/methods/map_clone.rs index ffedda95ff8..e04bb1c5079 100644 --- a/clippy_lints/src/methods/map_clone.rs +++ b/clippy_lints/src/methods/map_clone.rs @@ -48,7 +48,7 @@ pub(super) fn check<'tcx>( } } }, - hir::ExprKind::MethodCall(method, [obj], _) => if_chain! { + hir::ExprKind::MethodCall(method, obj, [], _) => if_chain! { if ident_eq(name, obj) && method.ident.name == sym::clone; if let Some(fn_id) = cx.typeck_results().type_dependent_def_id(closure_expr.hir_id); if let Some(trait_id) = cx.tcx.trait_of_item(fn_id); |
