Skip to content

Commit ad94aed

Browse files
authored
Merge pull request #2535 from dtolnay/baretrait
Restore bare_trait_objects lint within serde_derive code
2 parents b0f7b00 + 30db83f commit ad94aed

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

precompiled/serde_derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html
1515
1616
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.176")]
17-
#![allow(unknown_lints, bare_trait_objects)]
1817

1918
#[cfg(not(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu")))]
2019
include!("lib_from_source.rs");

serde_derive/src/internals/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl<'a> Container<'a> {
119119
}
120120

121121
impl<'a> Data<'a> {
122-
pub fn all_fields(&'a self) -> Box<Iterator<Item = &'a Field<'a>> + 'a> {
122+
pub fn all_fields(&'a self) -> Box<dyn Iterator<Item = &'a Field<'a>> + 'a> {
123123
match self {
124124
Data::Enum(variants) => {
125125
Box::new(variants.iter().flat_map(|variant| variant.fields.iter()))

serde_derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html
1515
1616
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.176")]
17-
#![allow(unknown_lints, bare_trait_objects)]
1817
// Ignored clippy lints
1918
#![allow(
2019
// clippy false positive: https://github.com/rust-lang/rust-clippy/issues/7054

serde_derive_internals/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.28.0")]
2-
#![allow(unknown_lints, bare_trait_objects)]
32
// Ignored clippy lints
43
#![allow(
54
clippy::cognitive_complexity,

0 commit comments

Comments
 (0)