Skip to content

Commit

Permalink
Upgrade syn & synstructure
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Jan 16, 2024
1 parent cf076be commit 468b172
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ repository = "https://github.com/RReverser/wasmbin"
proc-macro = true

[dependencies]
synstructure = "0.12.6"
synstructure = "0.13.0"
quote = "1.0.35"
proc-macro2 = "1.0.76"
syn = "1.0.109"
syn = "2.0.48"
thiserror = "1.0.56"
6 changes: 3 additions & 3 deletions derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ fn struct_discriminant<'v>(v: &VariantInfo<'v>) -> syn::Result<Option<Cow<'v, sy
.filter_map(|attr| match attr {
syn::Attribute {
style: syn::AttrStyle::Outer,
path,
meta,
..
} if path.is_ident("wasmbin") => {
} if meta.path().is_ident("wasmbin") => {
syn::custom_keyword!(discriminant);

Some(
Expand Down Expand Up @@ -137,7 +137,7 @@ fn parse_repr(s: &Structure) -> syn::Result<syn::Type> {
s.ast()
.attrs
.iter()
.find(|attr| attr.path.is_ident("repr"))
.find(|attr| attr.path().is_ident("repr"))
.ok_or_else(|| {
syn::Error::new_spanned(
&s.ast().ident,
Expand Down

0 comments on commit 468b172

Please sign in to comment.