difftreelog
cargo fmt
in: master
5 files changed
runtime/common/src/lib.rsdiffbeforeafterboth--- 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;
runtime/common/src/weights.rsdiffbeforeafterboth--- a/runtime/common/src/weights.rs
+++ b/runtime/common/src/weights.rs
@@ -51,7 +51,6 @@
#[cfg(feature = "refungible")]
impl<T: FungibleConfig + NonfungibleConfig + RefungibleConfig> CommonWeightConfigs for T {}
-
pub struct CommonWeights<T>(PhantomData<T>);
impl<T> CommonWeightInfo<T::CrossAccountId> for CommonWeights<T>
runtime/opal/src/lib.rsdiffbeforeafterboth35use sp_runtime::{35use sp_runtime::{36 traits::{Applyable, Member},36 traits::{Applyable, Member},37 generic::Era,37 generic::Era,38 DispatchErrorWithPostInfo38 DispatchErrorWithPostInfo,39};39};40// #[cfg(any(feature = "std", test))]40// #[cfg(any(feature = "std", test))]41// pub use sp_runtime::BuildStorage;41// pub use sp_runtime::BuildStorage;runtime/quartz/src/lib.rsdiffbeforeafterboth--- 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},
runtime/unique/src/lib.rsdiffbeforeafterboth--- 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},