Skip to content

Commit

Permalink
Merge pull request #11 from TTWNO/main
Browse files Browse the repository at this point in the history
Update packages so that syn is on 2.x
  • Loading branch information
rodrimati1992 authored Aug 24, 2024
2 parents 7e864fc + 131c4d6 commit 9988b83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ include = [
[workspace]

[dependencies.typewit]
version = "1.1.0"
version = "1.9.0"
optional = true

[dependencies.const_panic_proc_macros]
Expand Down
8 changes: 4 additions & 4 deletions const_panic_proc_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ travis-ci = { repository = "rodrimati1992/const_format_crates/" }
proc-macro = true

[dependencies]
quote = "1.0.7"
proc-macro2 = "1.0.19"
unicode-xid = "0.2"
quote = "1.0.37"
proc-macro2 = "1.0.86"
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 9988b83

Please sign in to comment.