Adding lint for too many lines.

This commit is contained in:
Araam Borhanian 2019-01-13 10:19:02 -05:00 committed by unknown
parent 44c835feea
commit 5e10809ac3
2 changed files with 6 additions and 1 deletions

View file

@ -90,7 +90,10 @@ pub struct Functions {
impl Functions {
pub fn new(threshold: u64, max_lines: u64) -> Self {
Self { threshold, max_lines }
Self {
threshold,
max_lines
}
}
}

View file

@ -1,5 +1,6 @@
#![warn(clippy::too_many_lines)]
fn good_lines() {
/* println!("This is good."); */
// println!("This is good.");
@ -106,6 +107,7 @@ fn bad_lines() {
println!("This is bad.");
println!("This is bad.");
println!("This is bad.");
<<<<<<< HEAD
println!("This is bad.");
println!("This is bad.");
println!("This is bad.");