chore(deps): upgrade syn 2.0 (#1910)

This commit is contained in:
Matthias Seitz
2023-03-22 14:02:33 +01:00
committed by GitHub
parent 2bc4da5eaa
commit bcfeb1dea0
8 changed files with 244 additions and 329 deletions

View File

@ -119,7 +119,7 @@ fn load_field(field: &syn::Field, fields: &mut FieldList, is_enum: bool) {
} else {
let should_compact = is_flag_type(&ftype) ||
field.attrs.iter().any(|attr| {
attr.path.segments.iter().any(|path| path.ident == "maybe_zero")
attr.path().segments.iter().any(|path| path.ident == "maybe_zero")
});
fields.push(FieldTypes::StructField((