Skip to content

Commit fd379a8

Browse files
committed
builtin-type-shadow: make lint adhere to lint message convention
1 parent 0876f17 commit fd379a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/misc_early.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl EarlyLintPass for MiscEarlyLints {
271271
cx,
272272
BUILTIN_TYPE_SHADOW,
273273
param.ident.span,
274-
&format!("This generic shadows the built-in type `{}`", name),
274+
&format!("this generic shadows the built-in type `{}`", name),
275275
);
276276
}
277277
}

tests/ui/builtin-type-shadow.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: This generic shadows the built-in type `u32`
1+
error: this generic shadows the built-in type `u32`
22
--> $DIR/builtin-type-shadow.rs:4:8
33
|
44
LL | fn foo<u32>(a: u32) -> u32 {

0 commit comments

Comments
 (0)