We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdd76a9 commit b41b38cCopy full SHA for b41b38c
clippy_lints/src/ref_option_ref.rs
@@ -34,12 +34,6 @@ declare_lint_pass!(RefOptionRef => [REF_OPTION_REF]);
34
35
impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
36
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>) {
43
if_chain! {
44
if let TyKind::Rptr(_, ref mut_ty) = ty.kind;
45
if mut_ty.mutbl == Mutability::Not;
0 commit comments