From 3b2d7676c4819ea0243441f05e3909ec565eec67 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Wed, 03 Aug 2022 07:27:51 +0000 Subject: [PATCH] cargo fmt --- --- a/runtime/common/src/lib.rs +++ b/runtime/common/src/lib.rs @@ -17,10 +17,10 @@ #![cfg_attr(not(feature = "std"), no_std)] pub mod constants; +pub mod construct_runtime; pub mod dispatch; pub mod eth_sponsoring; pub mod runtime_apis; pub mod sponsoring; pub mod types; pub mod weights; -pub mod construct_runtime; --- a/runtime/common/src/weights.rs +++ b/runtime/common/src/weights.rs @@ -51,7 +51,6 @@ #[cfg(feature = "refungible")] impl CommonWeightConfigs for T {} - pub struct CommonWeights(PhantomData); impl CommonWeightInfo for CommonWeights --- a/runtime/opal/src/lib.rs +++ b/runtime/opal/src/lib.rs @@ -33,9 +33,9 @@ #[cfg(feature = "scheduler")] use sp_runtime::{ - traits::{Applyable, Member}, - generic::Era, - DispatchErrorWithPostInfo + traits::{Applyable, Member}, + generic::Era, + DispatchErrorWithPostInfo, }; // #[cfg(any(feature = "std", test))] // pub use sp_runtime::BuildStorage; @@ -104,10 +104,11 @@ use fp_rpc::TransactionStatus; use sp_runtime::{ traits::{ - BlockNumberProvider, Dispatchable, PostDispatchInfoOf, DispatchInfoOf, - Saturating, CheckedConversion, + BlockNumberProvider, Dispatchable, PostDispatchInfoOf, DispatchInfoOf, Saturating, + CheckedConversion, }, - transaction_validity::TransactionValidityError, SaturatedConversion, + transaction_validity::TransactionValidityError, + SaturatedConversion, }; // pub use pallet_timestamp::Call as TimestampCall; @@ -118,11 +119,10 @@ use polkadot_parachain::primitives::Sibling; use xcm::v1::{BodyId, Junction::*, MultiLocation, NetworkId, Junctions::*}; use xcm_builder::{ - AccountId32Aliases, AllowTopLevelPaidExecutionFrom, CurrencyAdapter, - EnsureXcmOrigin, FixedWeightBounds, LocationInverter, NativeAsset, ParentAsSuperuser, - RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia, - SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, - ParentIsPreset, + AccountId32Aliases, AllowTopLevelPaidExecutionFrom, CurrencyAdapter, EnsureXcmOrigin, + FixedWeightBounds, LocationInverter, NativeAsset, ParentAsSuperuser, RelayChainAsNative, + SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, + SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, ParentIsPreset, }; use xcm_executor::{Config, XcmExecutor, Assets}; use sp_std::{cmp::Ordering, marker::PhantomData}; @@ -137,8 +137,7 @@ use xcm_executor::traits::{MatchesFungible, WeightTrader}; use unique_runtime_common::{ - construct_runtime, - impl_common_runtime_apis, + construct_runtime, impl_common_runtime_apis, types::*, constants::*, dispatch::{CollectionDispatchT, CollectionDispatch}, --- a/runtime/quartz/src/lib.rs +++ b/runtime/quartz/src/lib.rs @@ -33,9 +33,9 @@ #[cfg(feature = "scheduler")] use sp_runtime::{ - traits::{Applyable, Member}, - generic::Era, - DispatchErrorWithPostInfo + traits::{Applyable, Member}, + generic::Era, + DispatchErrorWithPostInfo, }; // #[cfg(any(feature = "std", test))] // pub use sp_runtime::BuildStorage; @@ -104,10 +104,11 @@ use fp_rpc::TransactionStatus; use sp_runtime::{ traits::{ - BlockNumberProvider, Dispatchable, PostDispatchInfoOf, DispatchInfoOf, - Saturating, CheckedConversion, + BlockNumberProvider, Dispatchable, PostDispatchInfoOf, DispatchInfoOf, Saturating, + CheckedConversion, }, - transaction_validity::TransactionValidityError, SaturatedConversion, + transaction_validity::TransactionValidityError, + SaturatedConversion, }; // pub use pallet_timestamp::Call as TimestampCall; @@ -118,11 +119,10 @@ use polkadot_parachain::primitives::Sibling; use xcm::v1::{BodyId, Junction::*, MultiLocation, NetworkId, Junctions::*}; use xcm_builder::{ - AccountId32Aliases, AllowTopLevelPaidExecutionFrom, CurrencyAdapter, - EnsureXcmOrigin, FixedWeightBounds, LocationInverter, NativeAsset, ParentAsSuperuser, - RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia, - SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, - ParentIsPreset, + AccountId32Aliases, AllowTopLevelPaidExecutionFrom, CurrencyAdapter, EnsureXcmOrigin, + FixedWeightBounds, LocationInverter, NativeAsset, ParentAsSuperuser, RelayChainAsNative, + SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, + SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, ParentIsPreset, }; use xcm_executor::{Config, XcmExecutor, Assets}; use sp_std::{cmp::Ordering, marker::PhantomData}; @@ -137,8 +137,7 @@ use xcm_executor::traits::{MatchesFungible, WeightTrader}; use unique_runtime_common::{ - construct_runtime, - impl_common_runtime_apis, + construct_runtime, impl_common_runtime_apis, types::*, constants::*, dispatch::{CollectionDispatchT, CollectionDispatch}, --- a/runtime/unique/src/lib.rs +++ b/runtime/unique/src/lib.rs @@ -36,7 +36,7 @@ use sp_runtime::{ traits::{Applyable, Member}, generic::Era, - DispatchErrorWithPostInfo + DispatchErrorWithPostInfo, }; // #[cfg(any(feature = "std", test))] // pub use sp_runtime::BuildStorage; @@ -105,10 +105,11 @@ use fp_rpc::TransactionStatus; use sp_runtime::{ traits::{ - BlockNumberProvider, Dispatchable, PostDispatchInfoOf, DispatchInfoOf, - Saturating, CheckedConversion, + BlockNumberProvider, Dispatchable, PostDispatchInfoOf, DispatchInfoOf, Saturating, + CheckedConversion, }, - transaction_validity::TransactionValidityError, SaturatedConversion, + transaction_validity::TransactionValidityError, + SaturatedConversion, }; // pub use pallet_timestamp::Call as TimestampCall; @@ -119,11 +120,10 @@ use polkadot_parachain::primitives::Sibling; use xcm::v1::{BodyId, Junction::*, MultiLocation, NetworkId, Junctions::*}; use xcm_builder::{ - AccountId32Aliases, AllowTopLevelPaidExecutionFrom, CurrencyAdapter, - EnsureXcmOrigin, FixedWeightBounds, LocationInverter, NativeAsset, ParentAsSuperuser, - RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia, - SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, - ParentIsPreset, + AccountId32Aliases, AllowTopLevelPaidExecutionFrom, CurrencyAdapter, EnsureXcmOrigin, + FixedWeightBounds, LocationInverter, NativeAsset, ParentAsSuperuser, RelayChainAsNative, + SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, + SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, ParentIsPreset, }; use xcm_executor::{Config, XcmExecutor, Assets}; use sp_std::{cmp::Ordering, marker::PhantomData}; @@ -138,8 +138,7 @@ use xcm_executor::traits::{MatchesFungible, WeightTrader}; use unique_runtime_common::{ - construct_runtime, - impl_common_runtime_apis, + construct_runtime, impl_common_runtime_apis, types::*, constants::*, dispatch::{CollectionDispatchT, CollectionDispatch}, -- gitstuff