From f7084e54874d75776e94e661440274fa6bde4249 Mon Sep 17 00:00:00 2001 From: Gavin Wood Date: Thu, 5 Mar 2020 17:00:44 +0100 Subject: [PATCH] remove derivation of debug in no_std (#5146) --- substrate/frame/staking/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/frame/staking/src/lib.rs b/substrate/frame/staking/src/lib.rs index 612efecea1..2dc377c55a 100644 --- a/substrate/frame/staking/src/lib.rs +++ b/substrate/frame/staking/src/lib.rs @@ -300,7 +300,7 @@ pub type EraIndex = u32; pub type RewardPoint = u32; /// Information regarding the active era (era in used in session). -#[derive(Encode, Decode, Debug)] +#[derive(Encode, Decode, RuntimeDebug)] pub struct ActiveEraInfo { /// Index of era. index: EraIndex, @@ -314,7 +314,7 @@ pub struct ActiveEraInfo { /// Reward points of an era. Used to split era total payout between validators. /// /// This points will be used to reward validators and their respective nominators. -#[derive(PartialEq, Encode, Decode, Default, Debug)] +#[derive(PartialEq, Encode, Decode, Default, RuntimeDebug)] pub struct EraRewardPoints { /// Total number of points. Equals the sum of reward points for each validator. total: RewardPoint,