git.delta.rocks / unique-network / refs/commits / 3b2d7676c481

difftreelog

cargo fmt

Daniel Shiposha2022-08-03parent: #b544464.patch.diff
in: master

5 files changed

modifiedruntime/common/src/lib.rsdiffbeforeafterboth
17#![cfg_attr(not(feature = "std"), no_std)]17#![cfg_attr(not(feature = "std"), no_std)]
1818
19pub mod constants;19pub mod constants;
20pub mod construct_runtime;
20pub mod dispatch;21pub mod dispatch;
21pub mod eth_sponsoring;22pub mod eth_sponsoring;
22pub mod runtime_apis;23pub mod runtime_apis;
23pub mod sponsoring;24pub mod sponsoring;
24pub mod types;25pub mod types;
25pub mod weights;26pub mod weights;
26pub mod construct_runtime;
2727
modifiedruntime/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>
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
--- 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},
modifiedruntime/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},
modifiedruntime/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},