diff options
| author | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-08-04 00:18:29 +0200 |
|---|---|---|
| committer | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-09-04 18:27:33 +0200 |
| commit | 28f9b84042b7d0ffd1f913e8ba82348ebe23dd1b (patch) | |
| tree | 3ed810f418f8363c0c77a29f770113c55a67d866 /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | 365b13c0e71f4af148e544a9f35aa0241dc2a56e (diff) | |
| download | rust-28f9b84042b7d0ffd1f913e8ba82348ebe23dd1b.tar.gz rust-28f9b84042b7d0ffd1f913e8ba82348ebe23dd1b.zip | |
`ty.kind` -> `ty.kind()` in rustdoc and clippy
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
| -rw-r--r-- | clippy_lints/src/mutable_debug_assertion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs index 7f529f0404c..cc635c2a202 100644 --- a/clippy_lints/src/mutable_debug_assertion.rs +++ b/clippy_lints/src/mutable_debug_assertion.rs @@ -138,7 +138,7 @@ impl<'a, 'tcx> Visitor<'tcx> for MutArgVisitor<'a, 'tcx> { if let Some(adj) = self.cx.typeck_results().adjustments().get(expr.hir_id) { if adj .iter() - .any(|a| matches!(a.target.kind, ty::Ref(_, _, Mutability::Mut))) + .any(|a| matches!(a.target.kind(), ty::Ref(_, _, Mutability::Mut))) { self.found = true; return; |
