Skip to content

Commit

Permalink
Ignore needless_raw_string_hashes clippy lint
Browse files Browse the repository at this point in the history
    warning: unnecessary hashes around raw string literal
      --> build.rs:10:21
       |
    10 |   const PROBE: &str = r#"
       |  _____________________^
    11 | |     #![feature(error_generic_member_access)]
    12 | |
    13 | |     use std::error::{Error, Request};
    ...  |
    35 | |     }
    36 | | "#;
       | |__^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes
       = note: `-W clippy::needless-raw-string-hashes` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::needless_raw_string_hashes)]`
    help: remove all the hashes around the literal
       |
    10 ~ const PROBE: &str = r"
    11 |     #![feature(error_generic_member_access)]
     ...
    35 |     }
    36 ~ ";
       |
  • Loading branch information
dtolnay committed Sep 27, 2023
1 parent 54465b7 commit f4eac7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::needless_raw_string_hashes)]

use std::env;
use std::fs;
use std::path::Path;
Expand Down

0 comments on commit f4eac7e

Please sign in to comment.