Update clippy_lints/src/ref_option_ref.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
6212950ceb
commit
230d9cbe36
@ -55,7 +55,7 @@ fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx>) {
|
||||
cx,
|
||||
REF_OPTION_REF,
|
||||
ty.span,
|
||||
"since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>",
|
||||
"since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`",
|
||||
"try",
|
||||
format!("Option<{}>", &snippet(cx, inner_ty.span, "..")),
|
||||
Applicability::MaybeIncorrect,
|
||||
|
Loading…
Reference in New Issue
Block a user