]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/mut_reference.rs
Remove a span from hir::ExprKind::MethodCall
[rust.git] / clippy_lints / src / mut_reference.rs
index 22834cf61ee038224db9e08d897bd65d67a7e14d..5c3e505c06c47821976f3377b1606a4d71c5d83e 100644 (file)
@@ -45,7 +45,7 @@ fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) {
                     );
                 }
             },
-            ExprKind::MethodCall(path, _, arguments, _) => {
+            ExprKind::MethodCall(path, arguments, _) => {
                 let def_id = cx.typeck_results().type_dependent_def_id(e.hir_id).unwrap();
                 let substs = cx.typeck_results().node_substs(e.hir_id);
                 let method_type = cx.tcx.type_of(def_id).subst(cx.tcx, substs);