Skip to content

Commit

Permalink
fmt and matches!
Browse files Browse the repository at this point in the history
  • Loading branch information
nanocryk committed Sep 20, 2023
1 parent d94332a commit aafa7cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
14 changes: 4 additions & 10 deletions container-chains/templates/simple/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,16 +536,10 @@ impl Contains<RuntimeCall> for MaintenanceFilter {
pub struct NormalFilter;
impl Contains<RuntimeCall> for NormalFilter {
fn contains(c: &RuntimeCall) -> bool {
match c {
// We filter anonymous proxy as they make "reserve" inconsistent
// See: https://github.com/paritytech/substrate/blob/37cca710eed3dadd4ed5364c7686608f5175cce1/frame/proxy/src/lib.rs#L270 // editorconfig-checker-disable-line
RuntimeCall::Proxy(method) => match method {
pallet_proxy::Call::create_pure { .. } => false,
pallet_proxy::Call::kill_pure { .. } => false,
_ => true,
},
_ => true,
}
// We filter anonymous proxy as they make "reserve" inconsistent
// See: https://github.com/paritytech/substrate/blob/37cca710eed3dadd4ed5364c7686608f5175cce1/frame/proxy/src/lib.rs#L270 // editorconfig-checker-disable-line

!matches!(c, RuntimeCall::Proxy(pallet_proxy::Call::create_pure { .. } | pallet_proxy::Call::kill_pure { .. }))
}
}

Expand Down
17 changes: 9 additions & 8 deletions runtime/dancebox/src/weights/xcm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@

pub mod pallet_xcm_benchmarks_generic;

use crate::weights::xcm::pallet_xcm_benchmarks_generic::WeightInfo;
use crate::Runtime;
use frame_support::weights::Weight;
use pallet_xcm_benchmarks_generic::SubstrateWeight as XcmGeneric;
use sp_std::prelude::*;
use xcm::{
latest::{prelude::*, Weight as XCMWeight},
DoubleEncoded,
use {
crate::{weights::xcm::pallet_xcm_benchmarks_generic::WeightInfo, Runtime},
frame_support::weights::Weight,
pallet_xcm_benchmarks_generic::SubstrateWeight as XcmGeneric,
sp_std::prelude::*,
xcm::{
latest::{prelude::*, Weight as XCMWeight},
DoubleEncoded,
},
};

trait WeighMultiAssets {
Expand Down

0 comments on commit aafa7cb

Please sign in to comment.