mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Adding lint for too many lines.
This commit is contained in:
parent
44c835feea
commit
5e10809ac3
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue