mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 11:28:02 +00:00
codegen: Make super types available for custom ty
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -27,7 +27,7 @@ pub fn generate_custom_values(
|
||||
};
|
||||
let ty = ty.to_token_stream(type_gen.settings());
|
||||
quote! {
|
||||
type #name = #ty;
|
||||
pub type #name = #ty;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -43,6 +43,8 @@ pub fn generate_custom_values(
|
||||
}
|
||||
|
||||
pub mod custom_types {
|
||||
pub use super::*;
|
||||
|
||||
#(#custom_types)*
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user