]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/config.rs
update Miri
[rust.git] / src / librustdoc / config.rs
index 93f90b90e0a0d6db6afffa3b2c0db72d6d690321..cee3dcb416f80128d7d43acb8c9f3dd836d6f39b 100644 (file)
@@ -562,7 +562,7 @@ fn println_condition(condition: Condition) {
         let edition = config::parse_crate_edition(matches);
 
         let mut id_map = html::markdown::IdMap::new();
-        let external_html = match ExternalHtml::load(
+        let Some(external_html) = ExternalHtml::load(
             &matches.opt_strs("html-in-header"),
             &matches.opt_strs("html-before-content"),
             &matches.opt_strs("html-after-content"),
@@ -573,9 +573,8 @@ fn println_condition(condition: Condition) {
             &mut id_map,
             edition,
             &None,
-        ) {
-            Some(eh) => eh,
-            None => return Err(3),
+        ) else {
+            return Err(3);
         };
 
         match matches.opt_str("r").as_deref() {