diff --git a/primitives/header-chain/src/justification.rs b/primitives/header-chain/src/justification.rs index 08cf1be1..92e5009a 100644 --- a/primitives/header-chain/src/justification.rs +++ b/primitives/header-chain/src/justification.rs @@ -24,7 +24,7 @@ use codec::{Decode, Encode}; use finality_grandpa::voter_set::VoterSet; use scale_info::TypeInfo; // substrate -use frame_support::RuntimeDebug; +use frame_support::{RuntimeDebug, RuntimeDebugNoBound}; use sp_consensus_grandpa::{AuthorityId, AuthoritySignature, SetId}; use sp_runtime::traits::Header as HeaderT; use sp_std::{ @@ -37,7 +37,7 @@ use sp_std::{ /// /// This particular proof is used to prove that headers on a bridged chain /// (so not our chain) have been finalized correctly. -#[derive(Clone, PartialEq, Eq, Encode, Decode, RuntimeDebug, TypeInfo)] +#[derive(Clone, PartialEq, Eq, Encode, Decode, RuntimeDebugNoBound, TypeInfo)] pub struct GrandpaJustification { /// The round (voting period) this justification is valid for. pub round: u64, diff --git a/primitives/test-utils/src/keyring.rs b/primitives/test-utils/src/keyring.rs index 6590a99a..d84f55b6 100644 --- a/primitives/test-utils/src/keyring.rs +++ b/primitives/test-utils/src/keyring.rs @@ -90,5 +90,5 @@ pub fn test_keyring() -> Vec<(Account, AuthorityWeight)> { /// Get a list of "unique" accounts. pub fn accounts(len: u16) -> Vec { - (0..len).into_iter().map(Account).collect() + (0..len).map(Account).collect() }