Skip to content

Commit 2099ef6

Browse files
committed
update cargo fmt
1 parent 270ff4e commit 2099ef6

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

node/src/command.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ use crate::{
88
};
99
use codec::Encode;
1010
use cumulus_client_service::genesis::generate_genesis_block;
11-
use cumulus_primitives_core::{
12-
ParaId,
13-
};
11+
use cumulus_primitives_core::ParaId;
1412
use datahighway_runtime::Block;
1513
use log::info;
1614
use polkadot_parachain::primitives::AccountIdConversion;
@@ -61,9 +59,9 @@ impl SubstrateCli for Cli {
6159

6260
fn description() -> String {
6361
format!(
64-
"DataHighway Collator\n\nThe command-line arguments provided first will be passed to the parachain \
65-
node, while the arguments provided after -- will be passed to the relaychain node.\n\n{} \
66-
[parachain-args] -- [relaychain-args]",
62+
"DataHighway Collator\n\nThe command-line arguments provided first will be passed to the parachain node, \
63+
while the arguments provided after -- will be passed to the relaychain node.\n\n{} [parachain-args] -- \
64+
[relaychain-args]",
6765
Self::executable_name()
6866
)
6967
}
@@ -99,9 +97,9 @@ impl SubstrateCli for RelayChainCli {
9997
}
10098

10199
fn description() -> String {
102-
"DataHighway Collator\n\nThe command-line arguments provided first will be passed to the parachain \
103-
node, while the arguments provided after -- will be passed to the relaychain node.\n\nrococo-collator \
104-
[parachain-args] -- [relaychain-args]"
100+
"DataHighway Collator\n\nThe command-line arguments provided first will be passed to the parachain node, while \
101+
the arguments provided after -- will be passed to the relaychain node.\n\nrococo-collator [parachain-args] -- \
102+
[relaychain-args]"
105103
.into()
106104
}
107105

node/src/service.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub fn new_partial(
6060

6161
let transaction_pool = sc_transaction_pool::BasicPool::new_full(
6262
config.transaction_pool.clone(),
63-
config.role.is_authority().into(),
63+
config.role.is_authority().into(),
6464
config.prometheus_registry(),
6565
task_manager.spawn_handle(),
6666
client.clone(),
@@ -112,11 +112,11 @@ where
112112

113113
let polkadot_full_node = cumulus_client_service::build_polkadot_full_node(polkadot_config, collator_key.public())
114114
.map_err(|e| {
115-
match e {
116-
polkadot_service::Error::Sub(x) => x,
117-
s => format!("{}", s).into(),
118-
}
119-
})?;
115+
match e {
116+
polkadot_service::Error::Sub(x) => x,
117+
s => format!("{}", s).into(),
118+
}
119+
})?;
120120

121121
let params = new_partial(&parachain_config)?;
122122
params.inherent_data_providers.register_provider(sp_timestamp::InherentDataProvider).unwrap();

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use_field_init_shorthand = true
5353
force_explicit_abi = true
5454
condense_wildcard_suffixes = true
5555
color = "Always"
56-
required_version = "1.4.21"
56+
required_version = "1.4.29"
5757
unstable_features = true
5858
disable_all_formatting = false
5959
skip_children = false

0 commit comments

Comments
 (0)