Skip to content

Commit

Permalink
Fix: Suppress false positive in current clippy nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb committed Jul 8, 2021
1 parent 8ed16d7 commit 3f692f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion serde_with_macros/src/lib.rs
Expand Up @@ -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`].
//!
Expand Down
2 changes: 1 addition & 1 deletion 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() {
Expand Down
2 changes: 1 addition & 1 deletion 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,
Expand Down

0 comments on commit 3f692f2

Please sign in to comment.