mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
Merge pull request #5374 from cakebaker/clippy_cognitive_complexity
clippy: suppress cognitive_complexity lint for two functions
This commit is contained in:
commit
970b499c3d
2 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue