mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(deps): upgrade syn 2.0 (#1910)
This commit is contained in:
@ -20,7 +20,7 @@ proc-macro = true
|
||||
[dependencies]
|
||||
proc-macro2 = "1.0.47"
|
||||
quote = "1.0"
|
||||
syn = { version = "1.0", features = ["full"] }
|
||||
syn = { version = "2.0", features = ["full"] }
|
||||
convert_case = "0.6.0"
|
||||
|
||||
# codecs
|
||||
|
||||
@ -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((
|
||||
|
||||
Reference in New Issue
Block a user