diff options
| author | dvermd <315743+dvermd@users.noreply.github.com> | 2020-10-13 23:01:57 +0200 |
|---|---|---|
| committer | dvermd <315743+dvermd@users.noreply.github.com> | 2020-10-26 22:34:42 +0100 |
| commit | b41b38cb7f16e1a622738aff591268083dca2e39 (patch) | |
| tree | 60c0b884db3ebdfaa12371f871e80d33fef63a79 | |
| parent | bdd76a9d1c4140624d758e5b8727869db3f9207c (diff) | |
| download | rust-b41b38cb7f16e1a622738aff591268083dca2e39.tar.gz rust-b41b38cb7f16e1a622738aff591268083dca2e39.zip | |
clippy_lint: Refactor 'ref_option_ref'
| -rw-r--r-- | clippy_lints/src/ref_option_ref.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clippy_lints/src/ref_option_ref.rs b/clippy_lints/src/ref_option_ref.rs index 3b9465ec13d..d4b09848ab6 100644 --- a/clippy_lints/src/ref_option_ref.rs +++ b/clippy_lints/src/ref_option_ref.rs @@ -34,12 +34,6 @@ declare_lint_pass!(RefOptionRef => [REF_OPTION_REF]); impl<'tcx> LateLintPass<'tcx> for RefOptionRef { fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx>) { - self.check_ref_option_ref(cx, ty); - } -} - -impl RefOptionRef { - fn check_ref_option_ref(&self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx>) { if_chain! { if let TyKind::Rptr(_, ref mut_ty) = ty.kind; if mut_ty.mutbl == Mutability::Not; |
