mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
cut: refactor mode args counting by removing nested map
This commit is contained in:
parent
0ac8606577
commit
6bec96aad1
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
matches.indices_of(options::FIELDS),
|
||||
]
|
||||
.into_iter()
|
||||
.filter_map(|mode| mode.map(|indices| indices.len()))
|
||||
.map(|indices| indices.unwrap_or_default().count())
|
||||
.sum();
|
||||
|
||||
let mode_parse = match (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue