From 1ae99051ea4c982e5fdeb9730ba97e819a61337f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 26 Sep 2023 19:15:30 -0700 Subject: [PATCH] Ignore needless_raw_string_hashes clippy lint warning: unnecessary hashes around raw string literal --> build.rs:17:21 | 17 | const PROBE: &str = r#" | _____________________^ 18 | | #![feature(error_generic_member_access)] 19 | | 20 | | use std::backtrace::Backtrace; ... | 45 | | const _: fn(&dyn Error) -> Option<&Backtrace> = |err| error::request_ref::(err); 46 | | "#; | |__^ | = 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 | 17 ~ const PROBE: &str = r" 18 | #![feature(error_generic_member_access)] ... 45 | const _: fn(&dyn Error) -> Option<&Backtrace> = |err| error::request_ref::(err); 46 ~ "; | --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index fc585cf..66d293b 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,4 @@ -#![allow(clippy::option_if_let_else)] +#![allow(clippy::needless_raw_string_hashes, clippy::option_if_let_else)] use std::env; use std::fs;