Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9fe0ac3

Browse files
committed
Avoid period in lint message according to convention
1 parent b2c2266 commit 9fe0ac3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clippy_lints/src/redundant_closure_call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl EarlyLintPass for RedundantClosureCall {
7777
cx,
7878
REDUNDANT_CLOSURE_CALL,
7979
expr.span,
80-
"try not to call a closure in the expression where it is declared.",
80+
"try not to call a closure in the expression where it is declared",
8181
|diag| {
8282
if decl.inputs.is_empty() {
8383
let mut app = Applicability::MachineApplicable;

tests/ui/redundant_closure_call_early.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
error: try not to call a closure in the expression where it is declared.
1+
error: try not to call a closure in the expression where it is declared
22
--> $DIR/redundant_closure_call_early.rs:9:17
33
|
44
LL | let mut k = (|m| m + 1)(i);
55
| ^^^^^^^^^^^^^^
66
|
77
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
88

9-
error: try not to call a closure in the expression where it is declared.
9+
error: try not to call a closure in the expression where it is declared
1010
--> $DIR/redundant_closure_call_early.rs:12:9
1111
|
1212
LL | k = (|a, b| a * b)(1, 5);

tests/ui/redundant_closure_call_fixable.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: try not to call a closure in the expression where it is declared.
1+
error: try not to call a closure in the expression where it is declared
22
--> $DIR/redundant_closure_call_fixable.rs:7:13
33
|
44
LL | let a = (|| 42)();

0 commit comments

Comments
 (0)