mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Change Applicability to MaybeIncorrect
Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user