ref_in_deref: make lint adhere to lint message convention
This commit is contained in:
parent
4418ff122f
commit
b36a6c9594
@ -92,7 +92,7 @@ impl EarlyLintPass for RefInDeref {
|
||||
cx,
|
||||
REF_IN_DEREF,
|
||||
object.span,
|
||||
"Creating a reference that is immediately dereferenced.",
|
||||
"creating a reference that is immediately dereferenced",
|
||||
"try this",
|
||||
snippet_with_applicability(cx, inner.span, "_", &mut applicability).to_string(),
|
||||
applicability,
|
||||
|
@ -1,4 +1,4 @@
|
||||
error: Creating a reference that is immediately dereferenced.
|
||||
error: creating a reference that is immediately dereferenced
|
||||
--> $DIR/unnecessary_ref.rs:13:17
|
||||
|
|
||||
LL | let inner = (&outer).inner;
|
||||
|
Loading…
Reference in New Issue
Block a user