Skip to content

Commit

Permalink
ls: add cognitive_complexity to silent a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre authored Oct 19, 2023
1 parent 3395d9d commit eab2fd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/uu/ls/src/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,7 @@ fn show_dir_name(dir: &Path, out: &mut BufWriter<Stdout>) {
write!(out, "{}:", dir.display()).unwrap();
}

#[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();
Expand Down

0 comments on commit eab2fd2

Please sign in to comment.