ref_in_deref: make lint adhere to lint message convention

This commit is contained in:
Matthias Krüger 2020-07-23 23:36:20 +02:00
parent 4418ff122f
commit b36a6c9594
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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;