Skip to content

Commit

Permalink
Merge pull request #2535 from dtolnay/baretrait
Browse files Browse the repository at this point in the history
Restore bare_trait_objects lint within serde_derive code
  • Loading branch information
dtolnay committed Jul 26, 2023
2 parents b0f7b00 + 30db83f commit ad94aed
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion precompiled/serde_derive/src/lib.rs
Expand Up @@ -14,7 +14,6 @@
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html

#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.176")]
#![allow(unknown_lints, bare_trait_objects)]

#[cfg(not(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu")))]
include!("lib_from_source.rs");
Expand Down
2 changes: 1 addition & 1 deletion serde_derive/src/internals/ast.rs
Expand Up @@ -119,7 +119,7 @@ impl<'a> Container<'a> {
}

impl<'a> Data<'a> {
pub fn all_fields(&'a self) -> Box<Iterator<Item = &'a Field<'a>> + 'a> {
pub fn all_fields(&'a self) -> Box<dyn Iterator<Item = &'a Field<'a>> + 'a> {
match self {
Data::Enum(variants) => {
Box::new(variants.iter().flat_map(|variant| variant.fields.iter()))
Expand Down
1 change: 0 additions & 1 deletion serde_derive/src/lib.rs
Expand Up @@ -14,7 +14,6 @@
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html

#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.176")]
#![allow(unknown_lints, bare_trait_objects)]
// Ignored clippy lints
#![allow(
// clippy false positive: https://github.com/rust-lang/rust-clippy/issues/7054
Expand Down
1 change: 0 additions & 1 deletion serde_derive_internals/lib.rs
@@ -1,5 +1,4 @@
#![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.28.0")]
#![allow(unknown_lints, bare_trait_objects)]
// Ignored clippy lints
#![allow(
clippy::cognitive_complexity,
Expand Down

0 comments on commit ad94aed

Please sign in to comment.