Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Sep 4, 2024
1 parent f390eca commit e2d8eb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion derive/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ fn iter_field_destructure(variant: &Variant) -> Box<dyn Iterator<Item = TokenStr
}

fn filter_skipped_variants(variant: &Variant) -> bool {
!variant.attrs.iter().any(|attr| attr.path().is_ident("skip"))
!variant
.attrs
.iter()
.any(|attr| attr.path().is_ident("skip"))
}

fn iter_field_groups(item: DeriveInput) -> Box<dyn Iterator<Item = Fields>> {
Expand Down

0 comments on commit e2d8eb8

Please sign in to comment.