Skip to content

Commit bcfeb4d

Browse files
committed
Fix build
1 parent 566377f commit bcfeb4d

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,11 +1614,11 @@ fn lint_or_fun_call<'a, 'tcx>(
16141614
or_has_args: bool,
16151615
span: Span,
16161616
) {
1617-
if let hir::ExprKind::MethodCall(ref path, _, ref args) = &arg.node {
1617+
if let hir::ExprKind::MethodCall(ref path, _, ref args) = &arg.kind {
16181618
if path.ident.as_str() == "len" {
16191619
let ty = walk_ptrs_ty(cx.tables.expr_ty(&args[0]));
16201620

1621-
match ty.sty {
1621+
match ty.kind {
16221622
ty::Slice(_) | ty::Array(_, _) => return,
16231623
_ => (),
16241624
}

0 commit comments

Comments
 (0)