From ca59b4422d85bef51f6455308c156de8bbe28f7a Mon Sep 17 00:00:00 2001 From: girazoki Date: Thu, 24 Aug 2023 19:03:00 +0200 Subject: [PATCH] fmt --- container-chains/templates/frontier/node/src/service.rs | 8 ++++---- container-chains/templates/frontier/runtime/src/lib.rs | 4 ++-- container-chains/templates/simple/node/src/service.rs | 7 ++----- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/container-chains/templates/frontier/node/src/service.rs b/container-chains/templates/frontier/node/src/service.rs index d8b13c15c..45efb642d 100644 --- a/container-chains/templates/frontier/node/src/service.rs +++ b/container-chains/templates/frontier/node/src/service.rs @@ -16,10 +16,10 @@ //! Service and ServiceFactory implementation. Specialized wrapper over substrate service. -use sc_executor::HeapAllocStrategy; -use sc_executor::WasmExecutor; -use sc_executor::DEFAULT_HEAP_ALLOC_STRATEGY; -use sc_network::config::FullNetworkConfiguration; +use { + sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY}, + sc_network::config::FullNetworkConfiguration, +}; // std use std::{ diff --git a/container-chains/templates/frontier/runtime/src/lib.rs b/container-chains/templates/frontier/runtime/src/lib.rs index 39c2cfbc6..59864eb3a 100644 --- a/container-chains/templates/frontier/runtime/src/lib.rs +++ b/container-chains/templates/frontier/runtime/src/lib.rs @@ -41,8 +41,8 @@ use { dispatch::{DispatchClass, GetDispatchInfo}, parameter_types, traits::{ - ConstU32, ConstU64, ConstU8, Contains, Currency as CurrencyT, Everything, Imbalance, OnFinalize, - OnUnbalanced, + ConstU32, ConstU64, ConstU8, Contains, Currency as CurrencyT, Everything, Imbalance, + OnFinalize, OnUnbalanced, }, weights::{ constants::{ diff --git a/container-chains/templates/simple/node/src/service.rs b/container-chains/templates/simple/node/src/service.rs index 61629985e..5a976bb07 100644 --- a/container-chains/templates/simple/node/src/service.rs +++ b/container-chains/templates/simple/node/src/service.rs @@ -15,15 +15,12 @@ // You should have received a copy of the GNU General Public License // along with Tanssi. If not, see . -use sc_executor::HeapAllocStrategy; -use sc_executor::WasmExecutor; -use sc_executor::DEFAULT_HEAP_ALLOC_STRATEGY; +use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY}; // std use std::{sync::Arc, time::Duration}; -use cumulus_client_cli::CollatorOptions; -use sc_network::config::FullNetworkConfiguration; +use {cumulus_client_cli::CollatorOptions, sc_network::config::FullNetworkConfiguration}; // Local Runtime Types use container_chain_template_simple_runtime::{opaque::Block, RuntimeApi};