Skip to content

Commit 8163679

Browse files
committed
Fix clippy
1 parent 510c422 commit 8163679

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

node/src/service.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ use std::{sync::Arc, time::Duration};
2525
use substrate_prometheus_endpoint::Registry;
2626

2727
// Runtime
28-
use node_subtensor_runtime::{
29-
opaque::Block, RuntimeApi, TransactionConverter,
30-
};
28+
use node_subtensor_runtime::{opaque::Block, RuntimeApi, TransactionConverter};
3129

3230
/// The minimum period of blocks on which justifications will be
3331
/// imported and generated.
@@ -314,9 +312,7 @@ where
314312
let metrics = NB::register_notification_metrics(maybe_registry);
315313

316314
let grandpa_protocol_name = sc_consensus_grandpa::protocol_standard_name(
317-
&client
318-
.block_hash(0u32.into())?
319-
.expect("Genesis block exists; qed"),
315+
&client.block_hash(0u32)?.expect("Genesis block exists; qed"),
320316
&config.chain_spec,
321317
);
322318

@@ -379,7 +375,7 @@ where
379375
let force_authoring = config.force_authoring;
380376
let backoff_authoring_blocks =
381377
Some(BackoffAuthoringOnFinalizedHeadLagging::<NumberFor<Block>> {
382-
unfinalized_slack: 6u32.into(),
378+
unfinalized_slack: 6u32,
383379
..Default::default()
384380
});
385381
let name = config.network.node_name.clone();

0 commit comments

Comments
 (0)