Skip to content

Commit d6cf7b9

Browse files
Remove rogue comma from infallible_try_from lint message (#15409)
Spotted while reading through the new lints in the changelog for Clippy 1.89: ``` 1 | error: infallible TryFrom impl; consider implementing From, instead | ^ this comma looks out of place ``` --- changelog: [`infallible_try_from`]: Fix a typo in the lint message
2 parents 048e8f2 + 5b22c0c commit d6cf7b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/infallible_try_from.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl<'tcx> LateLintPass<'tcx> for InfallibleTryFrom {
7171
cx,
7272
INFALLIBLE_TRY_FROM,
7373
span,
74-
"infallible TryFrom impl; consider implementing From, instead",
74+
"infallible TryFrom impl; consider implementing From instead",
7575
);
7676
}
7777
}

tests/ui/infallible_try_from.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: infallible TryFrom impl; consider implementing From, instead
1+
error: infallible TryFrom impl; consider implementing From instead
22
--> tests/ui/infallible_try_from.rs:8:1
33
|
44
LL | impl TryFrom<i8> for MyStruct {
@@ -10,7 +10,7 @@ LL | type Error = !;
1010
= note: `-D clippy::infallible-try-from` implied by `-D warnings`
1111
= help: to override `-D warnings` add `#[allow(clippy::infallible_try_from)]`
1212

13-
error: infallible TryFrom impl; consider implementing From, instead
13+
error: infallible TryFrom impl; consider implementing From instead
1414
--> tests/ui/infallible_try_from.rs:16:1
1515
|
1616
LL | impl TryFrom<i16> for MyStruct {

0 commit comments

Comments
 (0)