From 472cb2430ea11749cdfda839c1b6c591003d729d Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Tue, 13 Sep 2022 22:57:53 +0800 Subject: [PATCH] cargo fmt --- runtime/common/src/impls.rs | 6 +----- xcm/pallet-xcm-benchmarks/src/generic/mod.rs | 5 ++++- xcm/xcm-executor/src/lib.rs | 5 ++++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/runtime/common/src/impls.rs b/runtime/common/src/impls.rs index 23e835969888..f8675143e2bf 100644 --- a/runtime/common/src/impls.rs +++ b/runtime/common/src/impls.rs @@ -61,11 +61,7 @@ where mod tests { use super::*; use frame_support::{ - dispatch::DispatchClass, - parameter_types, - traits::FindAuthor, - weights::Weight, - PalletId, + dispatch::DispatchClass, parameter_types, traits::FindAuthor, weights::Weight, PalletId, }; use frame_system::limits; use primitives::v2::AccountId; diff --git a/xcm/pallet-xcm-benchmarks/src/generic/mod.rs b/xcm/pallet-xcm-benchmarks/src/generic/mod.rs index 2d2318ee3a5b..3d836b21e63d 100644 --- a/xcm/pallet-xcm-benchmarks/src/generic/mod.rs +++ b/xcm/pallet-xcm-benchmarks/src/generic/mod.rs @@ -7,7 +7,10 @@ mod mock; #[frame_support::pallet] pub mod pallet { use frame_benchmarking::BenchmarkError; - use frame_support::{dispatch::{Dispatchable, GetDispatchInfo}, pallet_prelude::Encode}; + use frame_support::{ + dispatch::{Dispatchable, GetDispatchInfo}, + pallet_prelude::Encode, + }; use xcm::latest::{MultiAssets, MultiLocation, Response}; #[pallet::config] diff --git a/xcm/xcm-executor/src/lib.rs b/xcm/xcm-executor/src/lib.rs index 9d2db0cc2de5..be2bd0c9791f 100644 --- a/xcm/xcm-executor/src/lib.rs +++ b/xcm/xcm-executor/src/lib.rs @@ -16,7 +16,10 @@ #![cfg_attr(not(feature = "std"), no_std)] -use frame_support::{dispatch::{Dispatchable, GetDispatchInfo}, ensure}; +use frame_support::{ + dispatch::{Dispatchable, GetDispatchInfo}, + ensure, +}; use sp_runtime::traits::Saturating; use sp_std::{marker::PhantomData, prelude::*}; use xcm::latest::{