Skip to content

Commit 5e10809

Browse files
Araam Borhanianunknown
Araam Borhanian
authored and
unknown
committed
Adding lint for too many lines.
1 parent 44c835f commit 5e10809

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

clippy_lints/src/functions.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ pub struct Functions {
9090

9191
impl Functions {
9292
pub fn new(threshold: u64, max_lines: u64) -> Self {
93-
Self { threshold, max_lines }
93+
Self {
94+
threshold,
95+
max_lines
96+
}
9497
}
9598
}
9699

tests/ui/functions_maxlines.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![warn(clippy::too_many_lines)]
22

3+
34
fn good_lines() {
45
/* println!("This is good."); */
56
// println!("This is good.");
@@ -106,6 +107,7 @@ fn bad_lines() {
106107
println!("This is bad.");
107108
println!("This is bad.");
108109
println!("This is bad.");
110+
<<<<<<< HEAD
109111
println!("This is bad.");
110112
println!("This is bad.");
111113
println!("This is bad.");

0 commit comments

Comments
 (0)