Skip to content

Commit

Permalink
update syn to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Feb 18, 2024
1 parent 77414d7 commit 41bd23c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rustbus_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ homepage = "https://github.com/KillingSpark/rustbus"
proc-macro = true

[dependencies]
syn = "1.0"
syn = "2.0"
quote = "1.0"
proc-macro2 = "1.0"

2 changes: 1 addition & 1 deletion rustbus_derive/src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn make_struct_unmarshal_impl(
) -> TokenStream {
let marshal = struct_field_unmarshal(fields);

let mut bufdef = syn::LifetimeDef {
let mut bufdef = syn::LifetimeParam {
attrs: Vec::new(),
lifetime: syn::Lifetime::new("'__internal_buf", proc_macro2::Span::call_site()),
colon_token: None,
Expand Down
2 changes: 1 addition & 1 deletion rustbus_derive/src/variants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub fn make_variant_unmarshal_impl(
tokens
});

let mut bufdef = syn::LifetimeDef {
let mut bufdef = syn::LifetimeParam {
attrs: Vec::new(),
lifetime: syn::Lifetime::new("'__internal_buf", proc_macro2::Span::call_site()),
colon_token: None,
Expand Down

0 comments on commit 41bd23c

Please sign in to comment.