From 3f692f2638c51108c539f8ea1ae3d63fe64a16a3 Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Thu, 8 Jul 2021 13:33:13 +0200 Subject: [PATCH] Fix: Suppress false positive in current clippy nightly https://github.com/rust-lang/rust-clippy/issues/7422 --- serde_with_macros/src/lib.rs | 4 +++- serde_with_macros/tests/version_numbers.rs | 2 +- tests/version_numbers.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/serde_with_macros/src/lib.rs b/serde_with_macros/src/lib.rs index e10a03bf..7e59992f 100644 --- a/serde_with_macros/src/lib.rs +++ b/serde_with_macros/src/lib.rs @@ -30,7 +30,9 @@ // Necessary to silence the warning about clippy::unknown_clippy_lints on nightly #![allow(renamed_and_removed_lints)] // Necessary for nightly clippy lints -#![allow(clippy::unknown_clippy_lints)] +// False positive in current clippy nightlies clippy::nonstandard_macro_braces +// https://github.com/rust-lang/rust-clippy/issues/7422 +#![allow(clippy::unknown_clippy_lints, clippy::nonstandard_macro_braces)] //! proc-macro extensions for [`serde_with`]. //! diff --git a/serde_with_macros/tests/version_numbers.rs b/serde_with_macros/tests/version_numbers.rs index b9515d63..218fe727 100644 --- a/serde_with_macros/tests/version_numbers.rs +++ b/serde_with_macros/tests/version_numbers.rs @@ -1,6 +1,6 @@ // Needed to supress a 2021 incompatability warning in the macro generated code // The non_fmt_panic lint is not yet available on most Rust versions -#![allow(unknown_lints, non_fmt_panic)] +#![allow(unknown_lints, non_fmt_panics)] #[test] fn test_html_root_url() { diff --git a/tests/version_numbers.rs b/tests/version_numbers.rs index a4058e46..5c478d91 100644 --- a/tests/version_numbers.rs +++ b/tests/version_numbers.rs @@ -1,6 +1,6 @@ // Needed to supress a 2021 incompatability warning in the macro generated code // The non_fmt_panic lint is not yet available on most Rust versions -#![allow(unknown_lints, non_fmt_panic)] +#![allow(unknown_lints, non_fmt_panics)] use version_sync::{ assert_contains_regex, assert_html_root_url_updated, assert_markdown_deps_updated,