Change Applicability to MaybeIncorrect
Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
ffddb669e0
commit
8337c467e9
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user