Skip to content

Commit

Permalink
Update syn
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Jul 11, 2023
1 parent 55f5b70 commit b7951e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion glyphs-reader/plist_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ edition = "2018"
proc-macro = true

[dependencies]
syn = "1.0.5"
syn = "2.0"
quote = "1.0.2"
proc-macro2 = "1.0"
4 changes: 2 additions & 2 deletions glyphs-reader/plist_derive/src/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ impl FieldAttrs {
for attr in attrs {
let args: syn::Path = attr.parse_args()?;
if args.is_ident(REST) {
this.rest = Some(attr.path.clone());
this.rest = Some(attr.path().clone());
} else if args.is_ident(DEFAULT) {
this.default = Some(attr.path.clone());
this.default = Some(attr.path().clone());
} else {
return Err(syn::Error::new(args.span(), "unsupported attribute"));
}
Expand Down

0 comments on commit b7951e2

Please sign in to comment.