]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/config.rs
Rollup merge of #90998 - jhpratt:require-const-stability, r=oli-obk
[rust.git] / src / librustdoc / config.rs
index 959f83a021139e09877a1364864cb1b40028b449..6e483d27f336b52e1933b8b1c1e45c52b54c09af 100644 (file)
@@ -439,13 +439,12 @@ fn println_condition(condition: Condition) {
             matches
                 .opt_str("default-theme")
                 .iter()
-                .map(|theme| {
+                .flat_map(|theme| {
                     vec![
                         ("use-system-theme".to_string(), "false".to_string()),
                         ("theme".to_string(), theme.to_string()),
                     ]
                 })
-                .flatten()
                 .collect(),
             matches
                 .opt_strs("default-setting")