Skip to content

Commit b41b38c

Browse files
committed
clippy_lint: Refactor 'ref_option_ref'
1 parent bdd76a9 commit b41b38c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clippy_lints/src/ref_option_ref.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ declare_lint_pass!(RefOptionRef => [REF_OPTION_REF]);
3434

3535
impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
3636
fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx>) {
37-
self.check_ref_option_ref(cx, ty);
38-
}
39-
}
40-
41-
impl RefOptionRef {
42-
fn check_ref_option_ref(&self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx>) {
4337
if_chain! {
4438
if let TyKind::Rptr(_, ref mut_ty) = ty.kind;
4539
if mut_ty.mutbl == Mutability::Not;

0 commit comments

Comments
 (0)