We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566377f commit bcfeb4dCopy full SHA for bcfeb4d
clippy_lints/src/methods/mod.rs
@@ -1614,11 +1614,11 @@ fn lint_or_fun_call<'a, 'tcx>(
1614
or_has_args: bool,
1615
span: Span,
1616
) {
1617
- if let hir::ExprKind::MethodCall(ref path, _, ref args) = &arg.node {
+ if let hir::ExprKind::MethodCall(ref path, _, ref args) = &arg.kind {
1618
if path.ident.as_str() == "len" {
1619
let ty = walk_ptrs_ty(cx.tables.expr_ty(&args[0]));
1620
1621
- match ty.sty {
+ match ty.kind {
1622
ty::Slice(_) | ty::Array(_, _) => return,
1623
_ => (),
1624
}
0 commit comments