Skip to content

Commit

Permalink
xtask: appease new clippy warning
Browse files Browse the repository at this point in the history
```
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
rust-lang/rust-clippy#11518 (the title
incorrectly says false positive).
  • Loading branch information
tamird committed Sep 27, 2023
1 parent 6720e12 commit cbe9cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xtask/src/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;

Expand Down

0 comments on commit cbe9cd9

Please sign in to comment.