From 6513a635880d31235c2ae18d12ee37aab1ded506 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 24 Aug 2023 22:27:19 -0700 Subject: [PATCH] Allow needless_raw_string_hashes in tests Tests should get have extra hashes in their raw string literals. --- tests/pcre_tests.rs | 3 +++ tests/tests.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/pcre_tests.rs b/tests/pcre_tests.rs index 8cd08da..a1944cf 100644 --- a/tests/pcre_tests.rs +++ b/tests/pcre_tests.rs @@ -1,3 +1,6 @@ +// We like hashes around raw string literals. +#![allow(clippy::needless_raw_string_hashes)] + // Work around dead code warnings: rust-lang issue #46379 pub mod common; use common::*; diff --git a/tests/tests.rs b/tests/tests.rs index 421852f..83add42 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,3 +1,6 @@ +// We like hashes around raw string literals. +#![allow(clippy::needless_raw_string_hashes)] + // Work around dead code warnings: rust-lang issue #46379 pub mod common;