1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 21:17:46 +00:00

Merge pull request #5374 from cakebaker/clippy_cognitive_complexity

clippy: suppress cognitive_complexity lint for two functions
This commit is contained in:
Sylvestre Ledru 2023-10-07 16:27:27 +02:00 committed by GitHub
commit 970b499c3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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<()> { pub fn list(locs: Vec<&Path>, config: &Config) -> UResult<()> {
let mut files = Vec::<PathData>::new(); let mut files = Vec::<PathData>::new();
let mut dirs = Vec::<PathData>::new(); let mut dirs = Vec::<PathData>::new();

View file

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