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
+1 -1
View File
@@ -58,7 +58,7 @@ fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx>) {
"since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>",
"try",
format!("Option<{}>", &snippet(cx, inner_ty.span, "..")),
Applicability::Unspecified,
Applicability::MaybeIncorrect,
);
}
}