From a8298373824ea76883a530a04b892f554e3dd5de Mon Sep 17 00:00:00 2001 From: command-bot <> Date: Thu, 18 Jan 2024 10:17:14 +0000 Subject: [PATCH] ".git/.scripts/commands/fmt/fmt.sh" --- substrate/bin/node/runtime/src/lib.rs | 19 +++++++++---------- substrate/frame/bags-list/src/mock.rs | 3 +-- substrate/frame/balances/src/tests/mod.rs | 3 +-- .../election-provider-multi-phase/src/mock.rs | 3 +-- .../election-provider-support/src/onchain.rs | 3 +-- substrate/frame/executive/src/lib.rs | 3 +-- substrate/frame/im-online/src/mock.rs | 3 +-- .../nomination-pools/benchmarking/src/mock.rs | 5 ++--- substrate/frame/nomination-pools/src/mock.rs | 3 +-- .../nomination-pools/test-staking/src/mock.rs | 5 ++--- substrate/frame/offences/src/mock.rs | 3 +-- substrate/frame/system/benches/bench.rs | 3 +-- 12 files changed, 22 insertions(+), 34 deletions(-) diff --git a/substrate/bin/node/runtime/src/lib.rs b/substrate/bin/node/runtime/src/lib.rs index fb71b1d028a6..67b11046cdf2 100644 --- a/substrate/bin/node/runtime/src/lib.rs +++ b/substrate/bin/node/runtime/src/lib.rs @@ -2083,8 +2083,7 @@ impl pallet_mixnet::Config for Runtime { } construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Utility: pallet_utility, Babe: pallet_babe, @@ -2106,10 +2105,10 @@ construct_runtime!( MmrLeaf: pallet_beefy_mmr, Session: pallet_session, Democracy: pallet_democracy, - Council: pallet_collective::, - TechnicalCommittee: pallet_collective::, + Council: pallet_collective, + TechnicalCommittee: pallet_collective, Elections: pallet_elections_phragmen, - TechnicalMembership: pallet_membership::, + TechnicalMembership: pallet_membership, Grandpa: pallet_grandpa, Treasury: pallet_treasury, AssetRate: pallet_asset_rate, @@ -2131,8 +2130,8 @@ construct_runtime!( Multisig: pallet_multisig, Bounties: pallet_bounties, Tips: pallet_tips, - Assets: pallet_assets::, - PoolAssets: pallet_assets::, + Assets: pallet_assets, + PoolAssets: pallet_assets, Lottery: pallet_lottery, Nis: pallet_nis, Uniques: pallet_uniques, @@ -2141,7 +2140,7 @@ construct_runtime!( Salary: pallet_salary, CoreFellowship: pallet_core_fellowship, TransactionStorage: pallet_transaction_storage, - VoterList: pallet_bags_list::, + VoterList: pallet_bags_list, StateTrieMigration: pallet_state_trie_migration, ChildBounties: pallet_child_bounties, Referenda: pallet_referenda, @@ -2149,10 +2148,10 @@ construct_runtime!( RootTesting: pallet_root_testing, ConvictionVoting: pallet_conviction_voting, Whitelist: pallet_whitelist, - AllianceMotion: pallet_collective::, + AllianceMotion: pallet_collective, Alliance: pallet_alliance, NominationPools: pallet_nomination_pools, - RankedPolls: pallet_referenda::, + RankedPolls: pallet_referenda, RankedCollective: pallet_ranked_collective, AssetConversion: pallet_asset_conversion, FastUnstake: pallet_fast_unstake, diff --git a/substrate/frame/bags-list/src/mock.rs b/substrate/frame/bags-list/src/mock.rs index 4b5e091faa69..12dae9c13f6d 100644 --- a/substrate/frame/bags-list/src/mock.rs +++ b/substrate/frame/bags-list/src/mock.rs @@ -68,8 +68,7 @@ impl bags_list::Config for Runtime { type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, BagsList: bags_list, } diff --git a/substrate/frame/balances/src/tests/mod.rs b/substrate/frame/balances/src/tests/mod.rs index 0f5fe566863a..426acbf04b0f 100644 --- a/substrate/frame/balances/src/tests/mod.rs +++ b/substrate/frame/balances/src/tests/mod.rs @@ -75,8 +75,7 @@ impl VariantCount for TestId { } frame_support::construct_runtime!( - pub struct Test - { + pub struct Test { System: frame_system, Balances: pallet_balances, TransactionPayment: pallet_transaction_payment, diff --git a/substrate/frame/election-provider-multi-phase/src/mock.rs b/substrate/frame/election-provider-multi-phase/src/mock.rs index 82974222fa96..a6be6d290500 100644 --- a/substrate/frame/election-provider-multi-phase/src/mock.rs +++ b/substrate/frame/election-provider-multi-phase/src/mock.rs @@ -54,8 +54,7 @@ pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Balances: pallet_balances, MultiPhase: multi_phase, diff --git a/substrate/frame/election-provider-support/src/onchain.rs b/substrate/frame/election-provider-support/src/onchain.rs index 15a5564baabd..054267bf18b3 100644 --- a/substrate/frame/election-provider-support/src/onchain.rs +++ b/substrate/frame/election-provider-support/src/onchain.rs @@ -194,8 +194,7 @@ mod tests { pub type Block = sp_runtime::generic::Block; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, } ); diff --git a/substrate/frame/executive/src/lib.rs b/substrate/frame/executive/src/lib.rs index e2f186539ef7..c6a54b35e573 100644 --- a/substrate/frame/executive/src/lib.rs +++ b/substrate/frame/executive/src/lib.rs @@ -897,8 +897,7 @@ mod tests { } frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Balances: pallet_balances, TransactionPayment: pallet_transaction_payment, diff --git a/substrate/frame/im-online/src/mock.rs b/substrate/frame/im-online/src/mock.rs index cc0318df8cea..744b199612e5 100644 --- a/substrate/frame/im-online/src/mock.rs +++ b/substrate/frame/im-online/src/mock.rs @@ -42,8 +42,7 @@ use crate::Config; type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Session: pallet_session, ImOnline: imonline, diff --git a/substrate/frame/nomination-pools/benchmarking/src/mock.rs b/substrate/frame/nomination-pools/benchmarking/src/mock.rs index 3606c9e6ff8b..4c27bdd8eb6e 100644 --- a/substrate/frame/nomination-pools/benchmarking/src/mock.rs +++ b/substrate/frame/nomination-pools/benchmarking/src/mock.rs @@ -180,13 +180,12 @@ impl crate::Config for Runtime {} type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Timestamp: pallet_timestamp, Balances: pallet_balances, Staking: pallet_staking, - VoterList: pallet_bags_list::, + VoterList: pallet_bags_list, Pools: pallet_nomination_pools, } ); diff --git a/substrate/frame/nomination-pools/src/mock.rs b/substrate/frame/nomination-pools/src/mock.rs index e22799cae3b8..5cbb2eb67ee6 100644 --- a/substrate/frame/nomination-pools/src/mock.rs +++ b/substrate/frame/nomination-pools/src/mock.rs @@ -295,8 +295,7 @@ impl pools::Config for Runtime { type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Balances: pallet_balances, Pools: pools, diff --git a/substrate/frame/nomination-pools/test-staking/src/mock.rs b/substrate/frame/nomination-pools/test-staking/src/mock.rs index e418723d0655..158762025efa 100644 --- a/substrate/frame/nomination-pools/test-staking/src/mock.rs +++ b/substrate/frame/nomination-pools/test-staking/src/mock.rs @@ -192,13 +192,12 @@ impl pallet_nomination_pools::Config for Runtime { type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Timestamp: pallet_timestamp, Balances: pallet_balances, Staking: pallet_staking, - VoterList: pallet_bags_list::, + VoterList: pallet_bags_list, Pools: pallet_nomination_pools, } ); diff --git a/substrate/frame/offences/src/mock.rs b/substrate/frame/offences/src/mock.rs index 0a2fb1b10327..8ae1ecef7375 100644 --- a/substrate/frame/offences/src/mock.rs +++ b/substrate/frame/offences/src/mock.rs @@ -68,8 +68,7 @@ pub fn with_on_offence_fractions) -> R>(f: F) -> type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Offences: offences, } diff --git a/substrate/frame/system/benches/bench.rs b/substrate/frame/system/benches/bench.rs index b35c59e8b5fd..f393c1b43762 100644 --- a/substrate/frame/system/benches/bench.rs +++ b/substrate/frame/system/benches/bench.rs @@ -47,8 +47,7 @@ mod module { type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub struct Runtime - { + pub struct Runtime { System: frame_system, Module: module, }