Skip to content

Commit

Permalink
ref_in_deref: make lint adhere to lint message convention
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Aug 10, 2020
1 parent 4418ff1 commit b36a6c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/unnecessary_ref.stderr
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit b36a6c9

Please sign in to comment.