mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
cut: refactor mode args counting by removing nested map
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user