Skip to content

Commit

Permalink
Use new syn interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
TTWNO committed Aug 24, 2024
1 parent 9e2575e commit 131c4d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions const_panic_proc_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ proc-macro = true
[dependencies]
quote = "1.0.37"
proc-macro2 = "1.0.86"
unicode-xid = "0.2"
unicode-xid = "0.2.5"

[dependencies.syn]
version = "1.0.38"
version = "2.0"

4 changes: 2 additions & 2 deletions const_panic_proc_macros/src/derive_debug/attribute_parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ fn parse_attribute<'a>(
ctx: ParseCtx<'a>,
attribute: &Attribute,
) -> syn::Result<()> {
if attribute.path.is_ident("pfmt") {
if attribute.path().is_ident("pfmt") {
let closure =
move |input: &'_ ParseBuffer<'_>| parse_helper_attribute(this, ds, ctx, input);

if attribute.tokens.is_empty() {
if attribute.to_token_stream().is_empty() {
Parser::parse2(closure, crate::TokenStream2::new())
} else {
attribute.parse_args_with(closure)
Expand Down

0 comments on commit 131c4d6

Please sign in to comment.