diff options
| author | Jeremy Stucki <dev@jeremystucki.ch> | 2020-05-25 21:23:39 +0200 |
|---|---|---|
| committer | Jeremy Stucki <dev@jeremystucki.ch> | 2020-05-25 21:41:20 +0200 |
| commit | bcfeb4de1589c19a7b21f04fec284e6045c0aa7a (patch) | |
| tree | cf59df0eb1fe6a145ae3159c6543c5a31be75907 | |
| parent | 566377f6272b0a3b9fa65dabe1f39ee82be80d4e (diff) | |
| download | rust-bcfeb4de1589c19a7b21f04fec284e6045c0aa7a.tar.gz rust-bcfeb4de1589c19a7b21f04fec284e6045c0aa7a.zip | |
Fix build
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index c82cf57a4b1..52ca962e7ef 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -1614,11 +1614,11 @@ fn lint_or_fun_call<'a, 'tcx>( or_has_args: bool, span: Span, ) { - if let hir::ExprKind::MethodCall(ref path, _, ref args) = &arg.node { + if let hir::ExprKind::MethodCall(ref path, _, ref args) = &arg.kind { if path.ident.as_str() == "len" { let ty = walk_ptrs_ty(cx.tables.expr_ty(&args[0])); - match ty.sty { + match ty.kind { ty::Slice(_) | ty::Array(_, _) => return, _ => (), } |
