mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 23:21: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());
|
let ty = ty.to_token_stream(type_gen.settings());
|
||||||
quote! {
|
quote! {
|
||||||
type #name = #ty;
|
pub type #name = #ty;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -43,6 +43,8 @@ pub fn generate_custom_values(
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub mod custom_types {
|
pub mod custom_types {
|
||||||
|
pub use super::*;
|
||||||
|
|
||||||
#(#custom_types)*
|
#(#custom_types)*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user