Skip to content

Commit a829837

Browse files
author
command-bot
committed
".git/.scripts/commands/fmt/fmt.sh"
1 parent fa3ebd3 commit a829837

12 files changed

Lines changed: 22 additions & 34 deletions

File tree

substrate/bin/node/runtime/src/lib.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,8 +2083,7 @@ impl pallet_mixnet::Config for Runtime {
20832083
}
20842084

20852085
construct_runtime!(
2086-
pub struct Runtime
2087-
{
2086+
pub struct Runtime {
20882087
System: frame_system,
20892088
Utility: pallet_utility,
20902089
Babe: pallet_babe,
@@ -2106,10 +2105,10 @@ construct_runtime!(
21062105
MmrLeaf: pallet_beefy_mmr,
21072106
Session: pallet_session,
21082107
Democracy: pallet_democracy,
2109-
Council: pallet_collective::<Instance1>,
2110-
TechnicalCommittee: pallet_collective::<Instance2>,
2108+
Council: pallet_collective<Instance1>,
2109+
TechnicalCommittee: pallet_collective<Instance2>,
21112110
Elections: pallet_elections_phragmen,
2112-
TechnicalMembership: pallet_membership::<Instance1>,
2111+
TechnicalMembership: pallet_membership<Instance1>,
21132112
Grandpa: pallet_grandpa,
21142113
Treasury: pallet_treasury,
21152114
AssetRate: pallet_asset_rate,
@@ -2131,8 +2130,8 @@ construct_runtime!(
21312130
Multisig: pallet_multisig,
21322131
Bounties: pallet_bounties,
21332132
Tips: pallet_tips,
2134-
Assets: pallet_assets::<Instance1>,
2135-
PoolAssets: pallet_assets::<Instance2>,
2133+
Assets: pallet_assets<Instance1>,
2134+
PoolAssets: pallet_assets<Instance2>,
21362135
Lottery: pallet_lottery,
21372136
Nis: pallet_nis,
21382137
Uniques: pallet_uniques,
@@ -2141,18 +2140,18 @@ construct_runtime!(
21412140
Salary: pallet_salary,
21422141
CoreFellowship: pallet_core_fellowship,
21432142
TransactionStorage: pallet_transaction_storage,
2144-
VoterList: pallet_bags_list::<Instance1>,
2143+
VoterList: pallet_bags_list<Instance1>,
21452144
StateTrieMigration: pallet_state_trie_migration,
21462145
ChildBounties: pallet_child_bounties,
21472146
Referenda: pallet_referenda,
21482147
Remark: pallet_remark,
21492148
RootTesting: pallet_root_testing,
21502149
ConvictionVoting: pallet_conviction_voting,
21512150
Whitelist: pallet_whitelist,
2152-
AllianceMotion: pallet_collective::<Instance3>,
2151+
AllianceMotion: pallet_collective<Instance3>,
21532152
Alliance: pallet_alliance,
21542153
NominationPools: pallet_nomination_pools,
2155-
RankedPolls: pallet_referenda::<Instance2>,
2154+
RankedPolls: pallet_referenda<Instance2>,
21562155
RankedCollective: pallet_ranked_collective,
21572156
AssetConversion: pallet_asset_conversion,
21582157
FastUnstake: pallet_fast_unstake,

substrate/frame/bags-list/src/mock.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ impl bags_list::Config for Runtime {
6868

6969
type Block = frame_system::mocking::MockBlock<Runtime>;
7070
frame_support::construct_runtime!(
71-
pub struct Runtime
72-
{
71+
pub struct Runtime {
7372
System: frame_system,
7473
BagsList: bags_list,
7574
}

substrate/frame/balances/src/tests/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ impl VariantCount for TestId {
7575
}
7676

7777
frame_support::construct_runtime!(
78-
pub struct Test
79-
{
78+
pub struct Test {
8079
System: frame_system,
8180
Balances: pallet_balances,
8281
TransactionPayment: pallet_transaction_payment,

substrate/frame/election-provider-multi-phase/src/mock.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ pub type UncheckedExtrinsic =
5454
sp_runtime::generic::UncheckedExtrinsic<AccountId, RuntimeCall, (), ()>;
5555

5656
frame_support::construct_runtime!(
57-
pub struct Runtime
58-
{
57+
pub struct Runtime {
5958
System: frame_system,
6059
Balances: pallet_balances,
6160
MultiPhase: multi_phase,

substrate/frame/election-provider-support/src/onchain.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ mod tests {
194194
pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>;
195195

196196
frame_support::construct_runtime!(
197-
pub struct Runtime
198-
{
197+
pub struct Runtime {
199198
System: frame_system,
200199
}
201200
);

substrate/frame/executive/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,8 +897,7 @@ mod tests {
897897
}
898898

899899
frame_support::construct_runtime!(
900-
pub struct Runtime
901-
{
900+
pub struct Runtime {
902901
System: frame_system,
903902
Balances: pallet_balances,
904903
TransactionPayment: pallet_transaction_payment,

substrate/frame/im-online/src/mock.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ use crate::Config;
4242
type Block = frame_system::mocking::MockBlock<Runtime>;
4343

4444
frame_support::construct_runtime!(
45-
pub struct Runtime
46-
{
45+
pub struct Runtime {
4746
System: frame_system,
4847
Session: pallet_session,
4948
ImOnline: imonline,

substrate/frame/nomination-pools/benchmarking/src/mock.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,12 @@ impl crate::Config for Runtime {}
180180
type Block = frame_system::mocking::MockBlock<Runtime>;
181181

182182
frame_support::construct_runtime!(
183-
pub struct Runtime
184-
{
183+
pub struct Runtime {
185184
System: frame_system,
186185
Timestamp: pallet_timestamp,
187186
Balances: pallet_balances,
188187
Staking: pallet_staking,
189-
VoterList: pallet_bags_list::<Instance1>,
188+
VoterList: pallet_bags_list<Instance1>,
190189
Pools: pallet_nomination_pools,
191190
}
192191
);

substrate/frame/nomination-pools/src/mock.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,7 @@ impl pools::Config for Runtime {
295295

296296
type Block = frame_system::mocking::MockBlock<Runtime>;
297297
frame_support::construct_runtime!(
298-
pub struct Runtime
299-
{
298+
pub struct Runtime {
300299
System: frame_system,
301300
Balances: pallet_balances,
302301
Pools: pools,

substrate/frame/nomination-pools/test-staking/src/mock.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,12 @@ impl pallet_nomination_pools::Config for Runtime {
192192
type Block = frame_system::mocking::MockBlock<Runtime>;
193193

194194
frame_support::construct_runtime!(
195-
pub struct Runtime
196-
{
195+
pub struct Runtime {
197196
System: frame_system,
198197
Timestamp: pallet_timestamp,
199198
Balances: pallet_balances,
200199
Staking: pallet_staking,
201-
VoterList: pallet_bags_list::<Instance1>,
200+
VoterList: pallet_bags_list<Instance1>,
202201
Pools: pallet_nomination_pools,
203202
}
204203
);

0 commit comments

Comments
 (0)