From 3c26dd869e772bd8e476cef4a8f77851d63d106a Mon Sep 17 00:00:00 2001 From: David Campbell Date: Thu, 19 Sep 2024 19:52:01 -0400 Subject: [PATCH] Fix clippy::flat_map_option. --- src/uu/ls/src/ls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/ls/src/ls.rs b/src/uu/ls/src/ls.rs index 7c8c3b444..232250dcf 100644 --- a/src/uu/ls/src/ls.rs +++ b/src/uu/ls/src/ls.rs @@ -831,7 +831,7 @@ impl Config { options::FULL_TIME, ] .iter() - .flat_map(|opt| { + .filter_map(|opt| { if options.value_source(opt) == Some(clap::parser::ValueSource::CommandLine) { options.indices_of(opt) } else {