]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/manual_bits.rs
separate the receiver from arguments in HIR under /clippy
[rust.git] / clippy_lints / src / manual_bits.rs
index 940601a44fb072c370e82e1d435c8acde6bc6dbf..6655c92b1da8da05a2f2f983bbe9fd8e28eaf439 100644 (file)
@@ -134,7 +134,7 @@ fn create_sugg(cx: &LateContext<'_>, expr: &Expr<'_>, base_sugg: String) -> Stri
 fn is_ty_conversion(expr: &Expr<'_>) -> bool {
     if let ExprKind::Cast(..) = expr.kind {
         true
-    } else if let ExprKind::MethodCall(path, [_], _) = expr.kind
+    } else if let ExprKind::MethodCall(path, _, [], _) = expr.kind
         && path.ident.name == rustc_span::sym::try_into
     {
         // This is only called for `usize` which implements `TryInto`. Therefore,