Avoid period in lint message according to convention
This commit is contained in:
parent
b2c2266792
commit
9fe0ac36a5
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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)();
|
||||
|
Loading…
x
Reference in New Issue
Block a user