Change Applicability to MaybeIncorrect

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
dvermd 2020-10-26 22:33:48 +01:00
parent ffddb669e0
commit 8337c467e9

View file

@ -58,7 +58,7 @@ impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
"since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>",
"try",
format!("Option<{}>", &snippet(cx, inner_ty.span, "..")),
Applicability::Unspecified,
Applicability::MaybeIncorrect,
);
}
}