Skip to content

Commit

Permalink
Ignore unnested_or_patterns suggesting unstable code
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 11, 2020
1 parent 0856a2c commit 95b1a5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
#![cfg_attr(
feature = "cargo-clippy",
allow(
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
unnested_or_patterns,
// not available in our oldest supported compiler
checked_conversions,
empty_enum,
Expand Down
4 changes: 3 additions & 1 deletion serde_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
clippy::too_many_arguments,
clippy::trivially_copy_pass_by_ref,
clippy::used_underscore_binding,
clippy::wildcard_in_or_patterns
clippy::wildcard_in_or_patterns,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
clippy::unnested_or_patterns,
)]
// Ignored clippy_pedantic lints
#![allow(
Expand Down
4 changes: 3 additions & 1 deletion serde_derive_internals/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
cognitive_complexity,
redundant_field_names,
trivially_copy_pass_by_ref,
wildcard_in_or_patterns
wildcard_in_or_patterns,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
unnested_or_patterns,
)
)]

Expand Down

0 comments on commit 95b1a5d

Please sign in to comment.