Skip to content

Commit

Permalink
Ignore faulty clippy lint in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb committed May 23, 2022
1 parent a83882e commit ade8109
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 2 deletions.
11 changes: 9 additions & 2 deletions serde_with/tests/base64.rs
@@ -1,5 +1,12 @@
// This allows the tests to be written more uniform and not have to special case the last clone().
#![allow(clippy::redundant_clone)]
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
// This allows the tests to be written more uniform and not have to special case the last clone().
clippy::redundant_clone,
)]

mod utils;

Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/chrono.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

extern crate alloc;

mod utils;
Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/derives/lib.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

mod deserialize_fromstr;
mod serialize_display;
#[path = "../utils.rs"]
Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/hex.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

mod utils;

use crate::utils::{check_deserialization, check_error_deserialization, is_equal};
Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/indexmap.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

mod utils;

use crate::utils::{check_deserialization, check_error_deserialization, is_equal};
Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/json.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

mod utils;

use crate::utils::is_equal;
Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/rust.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

extern crate alloc;

mod utils;
Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/serde_as/lib.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

extern crate alloc;

mod collections;
Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/time_0_3.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

mod utils;

use crate::utils::{check_deserialization, check_error_deserialization, is_equal};
Expand Down
8 changes: 8 additions & 0 deletions serde_with/tests/with_prefix.rs
@@ -1,3 +1,11 @@
#![allow(
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
unknown_lints,
// https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq,
)]

extern crate alloc;

mod utils;
Expand Down

0 comments on commit ade8109

Please sign in to comment.