mirror of
https://github.com/uutils/coreutils
synced 2025-01-05 17:59:00 +00:00
clippy: suppress cognitive_complexity lint
for two functions
This commit is contained in:
parent
3e1d3caceb
commit
2ba7400d05
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<()> {
|
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();
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue