Skip to content

Commit e57aafe

Browse files
committed
too-many-lines: make lint adhere to lint message convention
1 parent 4113453 commit e57aafe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clippy_lints/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl<'tcx> Functions {
374374
}
375375

376376
if line_count > self.max_lines {
377-
span_lint(cx, TOO_MANY_LINES, span, "This function has a large number of lines.")
377+
span_lint(cx, TOO_MANY_LINES, span, "this function has a large number of lines")
378378
}
379379
}
380380

tests/ui-toml/functions_maxlines/test.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: This function has a large number of lines.
1+
error: this function has a large number of lines
22
--> $DIR/test.rs:18:1
33
|
44
LL | / fn too_many_lines() {
@@ -9,7 +9,7 @@ LL | | }
99
|
1010
= note: `-D clippy::too-many-lines` implied by `-D warnings`
1111

12-
error: This function has a large number of lines.
12+
error: this function has a large number of lines
1313
--> $DIR/test.rs:38:1
1414
|
1515
LL | / fn comment_before_code() {

tests/ui/functions_maxlines.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: This function has a large number of lines.
1+
error: this function has a large number of lines
22
--> $DIR/functions_maxlines.rs:58:1
33
|
44
LL | / fn bad_lines() {

0 commit comments

Comments
 (0)