mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
|
|||
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 a new issue