difftreelog
style fix formatting
in: master
4 files changed
runtime/common/config/substrate.rsdiffbeforeafterboth--- a/runtime/common/config/substrate.rs
+++ b/runtime/common/config/substrate.rs
@@ -17,7 +17,10 @@
use frame_support::{
dispatch::DispatchClass,
ord_parameter_types, parameter_types,
- traits::{ConstBool, ConstU32, ConstU64, Everything, NeverEnsureOrigin, tokens::{PayFromAccount, UnityAssetBalanceConversion}},
+ traits::{
+ tokens::{PayFromAccount, UnityAssetBalanceConversion},
+ ConstBool, ConstU32, ConstU64, Everything, NeverEnsureOrigin,
+ },
weights::{
constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight},
ConstantMultiplier,
@@ -39,7 +42,8 @@
use crate::{
runtime_common::DealWithFees, Balances, Block, OriginCaller, PalletInfo, Runtime, RuntimeCall,
- RuntimeEvent, RuntimeHoldReason, RuntimeFreezeReason, RuntimeOrigin, SS58Prefix, System, Version, Treasury,
+ RuntimeEvent, RuntimeFreezeReason, RuntimeHoldReason, RuntimeOrigin, SS58Prefix, System,
+ Treasury, Version,
};
parameter_types! {
@@ -139,7 +143,7 @@
type Moment = u64;
type OnTimestampSet = ();
#[cfg(not(feature = "lookahead"))]
- type MinimumPeriod = ConstU64<{SLOT_DURATION / 2}>;
+ type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;
#[cfg(feature = "lookahead")]
type MinimumPeriod = ConstU64<0>;
type WeightInfo = ();
runtime/common/config/xcm/foreignassets.rsdiffbeforeafterboth--- a/runtime/common/config/xcm/foreignassets.rs
+++ b/runtime/common/config/xcm/foreignassets.rs
@@ -132,7 +132,11 @@
fn check_out(_dest: &MultiLocation, _what: &MultiAsset, _context: &XcmContext) {}
- fn deposit_asset(what: &MultiAsset, who: &MultiLocation, context: Option<&XcmContext>) -> XcmResult {
+ fn deposit_asset(
+ what: &MultiAsset,
+ who: &MultiLocation,
+ context: Option<&XcmContext>,
+ ) -> XcmResult {
FungiblesTransactor::deposit_asset(what, who, context)
}
runtime/common/config/xcm/mod.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617use cumulus_primitives_core::ParaId;17use frame_support::{18use frame_support::{18 parameter_types,19 parameter_types,19 traits::{ConstU32, Contains, Everything, Get, Nothing, ProcessMessageError},20 traits::{ConstU32, Contains, Everything, Get, Nothing, ProcessMessageError},20};21};21use frame_system::EnsureRoot;22use frame_system::EnsureRoot;22use pallet_xcm::XcmPassthrough;23use pallet_xcm::XcmPassthrough;23use polkadot_parachain_primitives::primitives::Sibling;24use polkadot_parachain_primitives::primitives::Sibling;25use polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery;24use sp_std::marker::PhantomData;26use sp_std::marker::PhantomData;25use staging_xcm::{27use staging_xcm::{26 latest::{prelude::*, MultiLocation, Weight},28 latest::{prelude::*, MultiLocation, Weight},36 XcmExecutor,38 XcmExecutor,37};39};38use up_common::types::AccountId;40use up_common::types::AccountId;39use cumulus_primitives_core::ParaId;40use polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery;414142use crate::{42use crate::{43 xcm_barrier::Barrier, AllPalletsWithSystem, Balances, ParachainInfo, ParachainSystem,43 xcm_barrier::Barrier, AllPalletsWithSystem, Balances, ParachainInfo, ParachainSystem,runtime/common/mod.rsdiffbeforeafterboth--- a/runtime/common/mod.rs
+++ b/runtime/common/mod.rs
@@ -43,10 +43,7 @@
use sp_version::NativeVersion;
use up_common::types::{AccountId, BlockNumber};
-use crate::{
- AllPalletsWithSystem, Aura, Balances, Runtime, RuntimeCall, Signature,
- Treasury,
-};
+use crate::{AllPalletsWithSystem, Aura, Balances, Runtime, RuntimeCall, Signature, Treasury};
#[macro_export]
macro_rules! unsupported {