difftreelog
fix cargo fmt
in: master
6 files changed
pallets/configuration/src/lib.rsdiffbeforeafterbothno syntactic changes
runtime/common/tests/mod.rsdiffbeforeafterbothno syntactic changes
runtime/common/tests/xcm.rsdiffbeforeafterboth161617use xcm::{17use xcm::{18 VersionedXcm,18 VersionedXcm,19 latest::{prelude::*, Error}19 latest::{prelude::*, Error},20};20};21use codec::Encode;21use codec::Encode;22use crate::{Runtime, RuntimeCall, RuntimeOrigin, RuntimeEvent, PolkadotXcm};22use crate::{Runtime, RuntimeCall, RuntimeOrigin, RuntimeEvent, PolkadotXcm};23use super::{new_test_ext, last_events, AccountId};23use super::{new_test_ext, last_events, AccountId};24use frame_support::{24use frame_support::{pallet_prelude::Weight};25 pallet_prelude::Weight,26};272528const ALICE: AccountId = AccountId::new([0u8; 32]);26const ALICE: AccountId = AccountId::new([0u8; 32]);29const BOB: AccountId = AccountId::new([1u8; 32]);27const BOB: AccountId = AccountId::new([1u8; 32]);302831const INITIAL_BALANCE: u128 = 1000000000000000000_0000; // 1000 UNQ 29const INITIAL_BALANCE: u128 = 1000000000000000000_0000; // 1000 UNQ323033#[test]31#[test]34pub fn xcm_transact_is_forbidden() {32pub fn xcm_transact_is_forbidden() {54 match xcm_event {53 match xcm_event {55 RuntimeEvent::PolkadotXcm(54 RuntimeEvent::PolkadotXcm(pallet_xcm::Event::<Runtime>::Attempted(56 pallet_xcm::Event::<Runtime>::Attempted(57 Outcome::Incomplete(_weight, Error::NoPermission)55 Outcome::Incomplete(_weight, Error::NoPermission),58 )56 )) => { /* Pass */ }59 ) => { /* Pass */ },60 _ => panic!(57 _ => panic!(61 "Expected PolkadotXcm.Attempted(Incomplete(_weight, NoPermission)),\58 "Expected PolkadotXcm.Attempted(Incomplete(_weight, NoPermission)),\62 found: {xcm_event:#?}"59 found: {xcm_event:#?}"63 )60 ),64 }61 }65 });62 });66}63}runtime/opal/src/xcm_barrier.rsdiffbeforeafterboth191920pub type Barrier = (20pub type Barrier = (TakeWeightCredit, AllowTopLevelPaidExecutionFrom<Everything>);21 TakeWeightCredit,22 AllowTopLevelPaidExecutionFrom<Everything>,23);2421runtime/quartz/src/xcm_barrier.rsdiffbeforeafterboth161617use frame_support::{17use frame_support::{match_types, traits::Everything};18 match_types,19 traits::Everything,20};21use xcm::latest::{Junctions::*, MultiLocation};18use xcm::latest::{Junctions::*, MultiLocation};22use xcm_builder::{19use xcm_builder::{runtime/unique/src/xcm_barrier.rsdiffbeforeafterboth161617use frame_support::{17use frame_support::{match_types, traits::Everything};18 match_types,19 traits::Everything,20};21use xcm::latest::{Junctions::*, MultiLocation};18use xcm::latest::{Junctions::*, MultiLocation};22use xcm_builder::{19use xcm_builder::{