Restore bare_trait_objects lint within serde_derive code

This commit is contained in:
David Tolnay
2023-07-26 14:18:25 -07:00
parent b0f7b00e1f
commit 30db83fc44
4 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -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()))