Skip to content

Commit 17ae9e8

Browse files
committed
do cargo fmt
1 parent dd9795a commit 17ae9e8

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

node/src/command.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ pub fn run() -> Result<()> {
208208
}
209209
Some(Subcommand::ExportGenesisState(params)) => {
210210
let mut builder = sc_cli::GlobalLoggerBuilder::new("");
211-
builder.with_profiling(sc_tracing::TracingReceiver::Log, "");
212-
let _ = builder.init();
211+
builder.with_profiling(sc_tracing::TracingReceiver::Log, "");
212+
let _ = builder.init();
213213

214214
let block: Block = generate_genesis_block(&load_spec(
215215
&params.chain.clone().unwrap_or_default(),
@@ -232,8 +232,8 @@ pub fn run() -> Result<()> {
232232
}
233233
Some(Subcommand::ExportGenesisWasm(params)) => {
234234
let mut builder = sc_cli::GlobalLoggerBuilder::new("");
235-
builder.with_profiling(sc_tracing::TracingReceiver::Log, "");
236-
let _ = builder.init();
235+
builder.with_profiling(sc_tracing::TracingReceiver::Log, "");
236+
let _ = builder.init();
237237

238238
let raw_wasm_blob = extract_genesis_wasm(&cli.load_spec(&params.chain.clone().unwrap_or_default())?)?;
239239
let output_buf = if params.raw {
@@ -277,12 +277,9 @@ pub fn run() -> Result<()> {
277277
let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode()));
278278

279279
let task_executor = config.task_executor.clone();
280-
let polkadot_config = SubstrateCli::create_configuration(
281-
&polkadot_cli,
282-
&polkadot_cli,
283-
task_executor,
284-
None,
285-
).map_err(|err| format!("Relay chain argument error: {}", err))?;
280+
let polkadot_config =
281+
SubstrateCli::create_configuration(&polkadot_cli, &polkadot_cli, task_executor, None)
282+
.map_err(|err| format!("Relay chain argument error: {}", err))?;
286283
let collator = cli.run.base.validator || cli.collator;
287284

288285
info!("Parachain id: {:?}", id);

node/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn new_partial(
4646
(),
4747
sp_consensus::import_queue::BasicQueue<Block, PrefixedMemoryDB<BlakeTwo256>>,
4848
sc_transaction_pool::FullPool<Block, TFullClient<Block, RuntimeApi, Executor>>,
49-
Option<sc_telemetry::TelemetrySpan>,
49+
Option<sc_telemetry::TelemetrySpan>,
5050
>,
5151
sc_service::Error,
5252
> {

runtime/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,11 @@ impl xcm_handler::Config for Runtime {
758758
}
759759

760760
impl cumulus_parachain_system::Config for Runtime {
761-
type SelfParaId = parachain_info::Module<Runtime>;
762-
type Event = Event;
763-
type OnValidationData = ();
764-
type DownwardMessageHandlers = ();
765-
type HrmpMessageHandlers = ();
761+
type DownwardMessageHandlers = ();
762+
type Event = Event;
763+
type HrmpMessageHandlers = ();
764+
type OnValidationData = ();
765+
type SelfParaId = parachain_info::Module<Runtime>;
766766
}
767767

768768
impl parachain_info::Config for Runtime {}

0 commit comments

Comments
 (0)