clippy: suppress cognitive_complexity lint

for two functions
This commit is contained in:
Daniel Hofstetter 2023-10-07 15:15:44 +02:00
parent 3e1d3caceb
commit 2ba7400d05
2 changed files with 2 additions and 0 deletions

View file

@ -1856,6 +1856,7 @@ impl PathData {
}
}
#[allow(clippy::cognitive_complexity)]
pub fn list(locs: Vec<&Path>, config: &Config) -> UResult<()> {
let mut files = Vec::<PathData>::new();
let mut dirs = Vec::<PathData>::new();

View file

@ -1714,6 +1714,7 @@ where
Ok(())
}
#[allow(clippy::cognitive_complexity)]
fn split(settings: &Settings) -> UResult<()> {
let mut reader = BufReader::new(if settings.input == "-" {
Box::new(stdin()) as Box<dyn Read>