From c6279b0dfba91506961745d156585c4e309b6814 Mon Sep 17 00:00:00 2001 From: nanocryk <6422796+nanocryk@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:40:15 +0200 Subject: [PATCH] fmt --- .../tanssi-relay-service/src/dev_service.rs | 64 +++++++++---------- .../dancelight/src/genesis_config_presets.rs | 3 +- 2 files changed, 33 insertions(+), 34 deletions(-) diff --git a/solo-chains/node/tanssi-relay-service/src/dev_service.rs b/solo-chains/node/tanssi-relay-service/src/dev_service.rs index 2660be5ea6..28f942ad8c 100644 --- a/solo-chains/node/tanssi-relay-service/src/dev_service.rs +++ b/solo-chains/node/tanssi-relay-service/src/dev_service.rs @@ -30,39 +30,39 @@ //! 10. If amount of time passed between two block is less than slot duration, we emulate passing of time babe block import and runtime //! by incrementing timestamp by slot duration. -use async_io::Timer; -use babe::{BabeBlockImport, BabeLink}; -use codec::{Decode, Encode}; -use consensus_common::SelectChain; -use dancelight_runtime::RuntimeApi; -use futures::Stream; -use futures::StreamExt; -use jsonrpsee::RpcModule; -use node_common::service::Sealing; -use polkadot_core_primitives::{AccountId, Balance, Block, Hash, Nonce}; -use polkadot_node_core_parachains_inherent::Error as InherentError; -use polkadot_overseer::Handle; -use polkadot_primitives::InherentData as ParachainsInherentData; -use polkadot_rpc::{DenyUnsafe, RpcExtension}; -use polkadot_service::{ - BlockT, Error, IdentifyVariant, NewFullParams, OverseerGen, SelectRelayChain, +use { + async_io::Timer, + babe::{BabeBlockImport, BabeLink}, + codec::{Decode, Encode}, + consensus_common::SelectChain, + dancelight_runtime::RuntimeApi, + futures::{Stream, StreamExt}, + jsonrpsee::RpcModule, + node_common::service::Sealing, + polkadot_core_primitives::{AccountId, Balance, Block, Hash, Nonce}, + polkadot_node_core_parachains_inherent::Error as InherentError, + polkadot_overseer::Handle, + polkadot_primitives::InherentData as ParachainsInherentData, + polkadot_rpc::{DenyUnsafe, RpcExtension}, + polkadot_service::{ + BlockT, Error, IdentifyVariant, NewFullParams, OverseerGen, SelectRelayChain, + }, + sc_client_api::{AuxStore, Backend}, + sc_consensus_manual_seal::{ + consensus::babe::BabeConsensusDataProvider, + rpc::{ManualSeal, ManualSealApiServer}, + run_manual_seal, EngineCommand, ManualSealParams, + }, + sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY}, + sc_transaction_pool_api::{OffchainTransactionPoolFactory, TransactionPool}, + service::{Configuration, KeystoreContainer, RpcHandlers, TaskManager}, + sp_api::ProvideRuntimeApi, + sp_block_builder::BlockBuilder, + sp_blockchain::{HeaderBackend, HeaderMetadata}, + sp_consensus_babe::SlotDuration, + std::{cmp::max, ops::Add, sync::Arc, time::Duration}, + telemetry::{Telemetry, TelemetryWorker, TelemetryWorkerHandle}, }; -use sc_client_api::{AuxStore, Backend}; -use sc_consensus_manual_seal::consensus::babe::BabeConsensusDataProvider; -use sc_consensus_manual_seal::rpc::{ManualSeal, ManualSealApiServer}; -use sc_consensus_manual_seal::{run_manual_seal, EngineCommand, ManualSealParams}; -use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY}; -use sc_transaction_pool_api::{OffchainTransactionPoolFactory, TransactionPool}; -use service::{Configuration, KeystoreContainer, RpcHandlers, TaskManager}; -use sp_api::ProvideRuntimeApi; -use sp_block_builder::BlockBuilder; -use sp_blockchain::{HeaderBackend, HeaderMetadata}; -use sp_consensus_babe::SlotDuration; -use std::cmp::max; -use std::ops::Add; -use std::sync::Arc; -use std::time::Duration; -use telemetry::{Telemetry, TelemetryWorker, TelemetryWorkerHandle}; pub type FullBackend = service::TFullBackend; diff --git a/solo-chains/runtime/dancelight/src/genesis_config_presets.rs b/solo-chains/runtime/dancelight/src/genesis_config_presets.rs index ed799678a7..1a0ce8fa2b 100644 --- a/solo-chains/runtime/dancelight/src/genesis_config_presets.rs +++ b/solo-chains/runtime/dancelight/src/genesis_config_presets.rs @@ -38,8 +38,7 @@ use { }, sp_keystore::{Keystore, KeystorePtr}, sp_runtime::traits::IdentifyAccount, - sp_std::vec, - sp_std::vec::Vec, + sp_std::{vec, vec::Vec}, tp_traits::ParaId, };