mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 14:35:40 +00:00
handle doc on type_value (#10132)
This commit is contained in:
committed by
GitHub
parent
15406835a8
commit
2755a97fa3
@@ -59,7 +59,10 @@ pub fn expand_type_values(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
(Default::default(), Default::default())
|
||||
};
|
||||
|
||||
let docs = &type_value.docs;
|
||||
|
||||
expand.extend(quote::quote_spanned!(type_value.attr_span =>
|
||||
#( #[doc = #docs] )*
|
||||
#vis struct #ident<#struct_use_gen>(core::marker::PhantomData<((), #struct_use_gen)>);
|
||||
impl<#struct_impl_gen> #frame_support::traits::Get<#type_> for #ident<#struct_use_gen>
|
||||
#where_clause
|
||||
|
||||
Reference in New Issue
Block a user