Skip to content

Commit 1f17c3b

Browse files
committed
multiple_inherent_impl: make lint adhere to lint message convention
1 parent bdf4dc3 commit 1f17c3b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clippy_lints/src/inherent_impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ impl<'tcx> LateLintPass<'tcx> for MultipleInherentImpl {
8181
cx,
8282
MULTIPLE_INHERENT_IMPL,
8383
*additional_span,
84-
"Multiple implementations of this structure",
84+
"multiple implementations of this structure",
8585
|diag| {
86-
diag.span_note(*initial_span, "First implementation here");
86+
diag.span_note(*initial_span, "first implementation here");
8787
},
8888
)
8989
})

tests/ui/impl.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: Multiple implementations of this structure
1+
error: multiple implementations of this structure
22
--> $DIR/impl.rs:10:1
33
|
44
LL | / impl MyStruct {
@@ -7,23 +7,23 @@ LL | | }
77
| |_^
88
|
99
= note: `-D clippy::multiple-inherent-impl` implied by `-D warnings`
10-
note: First implementation here
10+
note: first implementation here
1111
--> $DIR/impl.rs:6:1
1212
|
1313
LL | / impl MyStruct {
1414
LL | | fn first() {}
1515
LL | | }
1616
| |_^
1717

18-
error: Multiple implementations of this structure
18+
error: multiple implementations of this structure
1919
--> $DIR/impl.rs:24:5
2020
|
2121
LL | / impl super::MyStruct {
2222
LL | | fn third() {}
2323
LL | | }
2424
| |_____^
2525
|
26-
note: First implementation here
26+
note: first implementation here
2727
--> $DIR/impl.rs:6:1
2828
|
2929
LL | / impl MyStruct {

0 commit comments

Comments
 (0)