]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/scrape_examples.rs
Move `scripts` on the rustdoc template into `head` and apply the `defer` attribute
[rust.git] / src / librustdoc / scrape_examples.rs
index 1b5a750455248610ae2295adf7a0d33d7e23e343..3b39e3576e69a39d22f577b29dd3ab4c173feebf 100644 (file)
@@ -48,7 +48,7 @@ impl ScrapeExamplesOptions {
                 target_crates,
             })),
             (Some(_), false) | (None, true) => {
-                diag.err(&format!("must use --scrape-examples-output-path and --scrape-examples-target-crate together"));
+                diag.err("must use --scrape-examples-output-path and --scrape-examples-target-crate together");
                 Err(1)
             }
             (None, false) => Ok(None),