Skip to content

Commit

Permalink
Allow unknown needless_raw_string_hashes lint
Browse files Browse the repository at this point in the history
Prevent warnings on stable rust
  • Loading branch information
max-sixty committed Jul 18, 2023
1 parent 4288333 commit 4160c4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ macro_rules! assert_snapshot {
($value:expr, @$snapshot:literal) => {
$crate::assert_snapshot!(
$crate::_macro_support::ReferenceValue::Inline(
// Allow unknown lints until `needless_raw_string_hashes` is in
// our MSRV.
#[allow(unknown_lints)]
#[allow(clippy::needless_raw_string_hashes)]
$snapshot,
),
Expand All @@ -449,6 +452,9 @@ macro_rules! assert_snapshot {
($value:expr, $debug_expr:expr, @$snapshot:literal) => {
$crate::assert_snapshot!(
$crate::_macro_support::ReferenceValue::Inline(
// Allow unknown lints until `needless_raw_string_hashes` is in
// our MSRV.
#[allow(unknown_lints)]
#[allow(clippy::needless_raw_string_hashes)]
$snapshot,
),
Expand Down

0 comments on commit 4160c4b

Please sign in to comment.