Skip to content

Commit

Permalink
Format the iterator chain a bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
HCastano committed May 14, 2024
1 parent 9286125 commit 5f146bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion node/cli/src/chain_spec/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ pub fn development_genesis_config(
balances: endowed_accounts
.iter()
.chain(endowed_accounts_dev().iter())
.cloned().map(|x| (x, ENDOWMENT)).collect(),
.cloned()
.map(|x| (x, ENDOWMENT))
.collect(),
},
"indices": IndicesConfig { indices: vec![] },
"session": SessionConfig {
Expand Down
4 changes: 3 additions & 1 deletion node/cli/src/chain_spec/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ pub fn integration_tests_genesis_config(
balances: endowed_accounts
.iter()
.chain(endowed_accounts_dev().iter())
.cloned().map(|x| (x, ENDOWMENT)).collect(),
.cloned()
.map(|x| (x, ENDOWMENT))
.collect(),
},
"indices": IndicesConfig { indices: vec![] },
"session": SessionConfig {
Expand Down
4 changes: 3 additions & 1 deletion node/cli/src/chain_spec/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ pub fn testnet_genesis_config(
balances: endowed_accounts
.iter()
.chain(endowed_testnet_accounts().iter())
.cloned().map(|x| (x, ENDOWMENT)).collect(),
.cloned()
.map(|x| (x, ENDOWMENT))
.collect(),
},
"indices": IndicesConfig { indices: vec![] },
"session": SessionConfig {
Expand Down

0 comments on commit 5f146bc

Please sign in to comment.