Avoid period in lint message according to convention

This commit is contained in:
Takayuki Nakata 2020-08-24 10:11:53 +09:00
parent b2c2266792
commit 9fe0ac36a5
3 changed files with 4 additions and 4 deletions

View file

@ -77,7 +77,7 @@ impl EarlyLintPass for RedundantClosureCall {
cx,
REDUNDANT_CLOSURE_CALL,
expr.span,
"try not to call a closure in the expression where it is declared.",
"try not to call a closure in the expression where it is declared",
|diag| {
if decl.inputs.is_empty() {
let mut app = Applicability::MachineApplicable;

View file

@ -1,4 +1,4 @@
error: try not to call a closure in the expression where it is declared.
error: try not to call a closure in the expression where it is declared
--> $DIR/redundant_closure_call_early.rs:9:17
|
LL | let mut k = (|m| m + 1)(i);
@ -6,7 +6,7 @@ LL | let mut k = (|m| m + 1)(i);
|
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
error: try not to call a closure in the expression where it is declared.
error: try not to call a closure in the expression where it is declared
--> $DIR/redundant_closure_call_early.rs:12:9
|
LL | k = (|a, b| a * b)(1, 5);

View file

@ -1,4 +1,4 @@
error: try not to call a closure in the expression where it is declared.
error: try not to call a closure in the expression where it is declared
--> $DIR/redundant_closure_call_fixable.rs:7:13
|
LL | let a = (|| 42)();