about summary refs log tree commit diff
path: root/clippy_lints/src/mut_reference.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-06-09 17:44:04 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-06-10 17:30:11 -0400
commit6b3ee8f6000ea0fe88d1d19bceac9441a43d8694 (patch)
tree2a3910b17ae177358d8be60c57bf66dd4d9f3218 /clippy_lints/src/mut_reference.rs
parent8db24840f7457f005cb73807197992922ca960b1 (diff)
downloadrust-6b3ee8f6000ea0fe88d1d19bceac9441a43d8694.tar.gz
rust-6b3ee8f6000ea0fe88d1d19bceac9441a43d8694.zip
Update Clippy for MethodCall changes
Diffstat (limited to 'clippy_lints/src/mut_reference.rs')
-rw-r--r--clippy_lints/src/mut_reference.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/mut_reference.rs b/clippy_lints/src/mut_reference.rs
index 58a8e1a1064..7fcf15f8acb 100644
--- a/clippy_lints/src/mut_reference.rs
+++ b/clippy_lints/src/mut_reference.rs
@@ -42,7 +42,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnnecessaryMutPassed {
                     );
                 }
             },
-            ExprKind::MethodCall(ref path, _, ref arguments) => {
+            ExprKind::MethodCall(ref path, _, ref arguments, _) => {
                 let def_id = cx.tables.type_dependent_def_id(e.hir_id).unwrap();
                 let substs = cx.tables.node_substs(e.hir_id);
                 let method_type = cx.tcx.type_of(def_id).subst(cx.tcx, substs);