mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-25 21:11:07 +00:00
Globally upgrade to syn 2.x and latest quote and proc_macro2 1x versions (#13846)
* globally upgrade quote to latest 1.0.x (1.0.26) * globally upgrade syn to final 1.0.x version (1.0.109) * globally upgrade proc-macro2 to 1.0.56 * upgrade to syn v2.0.13 and fix everything except NestedMeta * fix parse nested metadata code in decl_runtime_apis.rs * Port more stuff to syn 2.0 * Make the rest compile * Ignore error * update to syn 2.0.14 --------- Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -62,7 +62,7 @@ pub fn derive_default_no_bound(input: proc_macro::TokenStream) -> proc_macro::To
|
||||
let default_variants = enum_
|
||||
.variants
|
||||
.into_iter()
|
||||
.filter(|variant| variant.attrs.iter().any(|attr| attr.path.is_ident("default")))
|
||||
.filter(|variant| variant.attrs.iter().any(|attr| attr.path().is_ident("default")))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
match &*default_variants {
|
||||
@@ -80,7 +80,7 @@ pub fn derive_default_no_bound(input: proc_macro::TokenStream) -> proc_macro::To
|
||||
let variant_attrs = default_variant
|
||||
.attrs
|
||||
.iter()
|
||||
.filter(|a| a.path.is_ident("default"))
|
||||
.filter(|a| a.path().is_ident("default"))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
// check that there is only one #[default] attribute on the variant
|
||||
|
||||
Reference in New Issue
Block a user