Browse Source

xtask: appease new clippy warning

```
warning: unnecessary hashes around raw string literal
  --> xtask/src/docs.rs:70:17
   |
70 |           indoc! {r#"
   |  _________________^
71 | |     User-Agent:*
72 | |     Disallow: /
73 | |     "#},
   | |______^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes
   = note: `#[warn(clippy::needless_raw_string_hashes)]` on by default
help: remove all the hashes around the literal
   |
70 ~         indoc! {r"
71 |     User-Agent:*
72 |     Disallow: /
73 ~     "},
   |
```

This false negative was fixed in
https://github.com/rust-lang/rust-clippy/pull/11518 (the title
incorrectly says false positive).
Tamir Duberstein 1 year ago
parent
commit
cbe9cd9133
1 changed files with 2 additions and 2 deletions
  1. 2 2
      xtask/src/docs.rs

+ 2 - 2
xtask/src/docs.rs

@@ -67,10 +67,10 @@ pub fn docs(metadata: Metadata) -> Result<()> {
 
     fs::write(
         site.join("robots.txt"),
-        indoc! {r#"
+        indoc! {r"
     User-Agent:*
     Disallow: /
-    "#},
+    "},
     )
     .context("can't write robots.txt")?;