Skip to content

Commit b36a6c9

Browse files
committed
ref_in_deref: make lint adhere to lint message convention
1 parent 4418ff1 commit b36a6c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/reference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl EarlyLintPass for RefInDeref {
9292
cx,
9393
REF_IN_DEREF,
9494
object.span,
95-
"Creating a reference that is immediately dereferenced.",
95+
"creating a reference that is immediately dereferenced",
9696
"try this",
9797
snippet_with_applicability(cx, inner.span, "_", &mut applicability).to_string(),
9898
applicability,

tests/ui/unnecessary_ref.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: Creating a reference that is immediately dereferenced.
1+
error: creating a reference that is immediately dereferenced
22
--> $DIR/unnecessary_ref.rs:13:17
33
|
44
LL | let inner = (&outer).inner;

0 commit comments

Comments
 (0)