Fix clippy::flat_map_option.

This commit is contained in:
David Campbell 2024-09-19 19:52:01 -04:00
parent 392344c93a
commit 3c26dd869e
No known key found for this signature in database
GPG key ID: C2E99A0CF863A603

View file

@ -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 {