Derive RuntimeDebug for Runtime (#6581)

This commit is contained in:
Shawn Tabrizi
2020-07-06 12:51:01 +02:00
committed by GitHub
parent ad2e832289
commit fe79b24692
@@ -99,8 +99,7 @@ fn construct_runtime_parsed(definition: RuntimeDefinition) -> Result<TokenStream
let res = quote!(
#scrate_decl
#[derive(Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "std", derive(Debug))]
#[derive(Clone, Copy, PartialEq, Eq, #scrate::sp_runtime::RuntimeDebug)]
pub struct #name;
impl #scrate::sp_runtime::traits::GetNodeBlockType for #name {
type NodeBlock = #node_block;