diff --git a/cli/src/command.rs b/cli/src/command.rs index d6ae94a2ced9..a4f821460157 100644 --- a/cli/src/command.rs +++ b/cli/src/command.rs @@ -410,9 +410,8 @@ pub fn run() -> Result<()> { use sc_service::TaskManager; let registry = &runner.config().prometheus_config.as_ref().map(|cfg| &cfg.registry); - let task_manager = - TaskManager::new(runner.config().tokio_handle.clone(), *registry) - .map_err(|e| Error::SubstrateService(sc_service::Error::Prometheus(e)))?; + let task_manager = TaskManager::new(runner.config().tokio_handle.clone(), *registry) + .map_err(|e| Error::SubstrateService(sc_service::Error::Prometheus(e)))?; ensure_dev(chain_spec).map_err(Error::Other)?; diff --git a/node/test/polkadot-simnet/common/src/lib.rs b/node/test/polkadot-simnet/common/src/lib.rs index 2768e50c5d3e..1d9d76708ae1 100644 --- a/node/test/polkadot-simnet/common/src/lib.rs +++ b/node/test/polkadot-simnet/common/src/lib.rs @@ -33,8 +33,7 @@ use sp_runtime::{app_crypto::sp_core::H256, generic::Era, AccountId32}; use std::{error::Error, future::Future, str::FromStr}; use support::{weights::Weight, StorageValue}; use test_runner::{ - build_runtime, client_parts, ChainInfo, ConfigOrChainSpec, Node, - SignatureVerificationOverride, + build_runtime, client_parts, ChainInfo, ConfigOrChainSpec, Node, SignatureVerificationOverride, }; type BlockImport = BabeBlockImport>; diff --git a/node/test/service/tests/build-blocks.rs b/node/test/service/tests/build-blocks.rs index 0c466a58ae6f..e32d9c941878 100644 --- a/node/test/service/tests/build-blocks.rs +++ b/node/test/service/tests/build-blocks.rs @@ -24,8 +24,13 @@ async fn ensure_test_service_build_blocks() { builder.with_colors(false); builder.init().expect("Sets up logger"); - let mut alice = - run_validator_node(tokio::runtime::Handle::current(), Sr25519Keyring::Alice, || {}, Vec::new(), None); + let mut alice = run_validator_node( + tokio::runtime::Handle::current(), + Sr25519Keyring::Alice, + || {}, + Vec::new(), + None, + ); let mut bob = run_validator_node( tokio::runtime::Handle::current(), Sr25519Keyring::Bob, diff --git a/node/test/service/tests/call-function.rs b/node/test/service/tests/call-function.rs index 1b7a9d6f99be..794a9e5c43c3 100644 --- a/node/test/service/tests/call-function.rs +++ b/node/test/service/tests/call-function.rs @@ -19,7 +19,8 @@ use sp_keyring::Sr25519Keyring::{Alice, Bob}; #[substrate_test_utils::test] async fn call_function_actually_work() { - let alice = run_validator_node(tokio::runtime::Handle::current(), Alice, || {}, Vec::new(), None); + let alice = + run_validator_node(tokio::runtime::Handle::current(), Alice, || {}, Vec::new(), None); let function = polkadot_test_runtime::Call::Balances(pallet_balances::Call::transfer( Default::default(),