]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/methods/expect_fun_call.rs
Remove a span from hir::ExprKind::MethodCall
[rust.git] / clippy_lints / src / methods / expect_fun_call.rs
index 0f39470f34262d2fc95718ea5f143b21e3ea7628..e7d2d550a3032e58af49db5ddf99cc970ab2d4fb 100644 (file)
@@ -28,7 +28,7 @@ fn get_arg_root<'a>(cx: &LateContext<'_>, arg: &'a hir::Expr<'a>) -> &'a hir::Ex
         loop {
             arg_root = match &arg_root.kind {
                 hir::ExprKind::AddrOf(hir::BorrowKind::Ref, _, expr) => expr,
-                hir::ExprKind::MethodCall(method_name, _, call_args, _) => {
+                hir::ExprKind::MethodCall(method_name, call_args, _) => {
                     if call_args.len() == 1
                         && (method_name.ident.name == sym::as_str || method_name.ident.name == sym!(as_ref))
                         && {