From 22f4af5039d36c595a505f0e416a5302191bc7d7 Mon Sep 17 00:00:00 2001 From: command-bot <> Date: Wed, 22 Nov 2023 10:09:09 +0000 Subject: [PATCH] ".git/.scripts/commands/fmt/fmt.sh" --- .../runtimes/testing/rococo-parachain/src/lib.rs | 2 +- polkadot/xcm/src/v4/mod.rs | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cumulus/parachains/runtimes/testing/rococo-parachain/src/lib.rs b/cumulus/parachains/runtimes/testing/rococo-parachain/src/lib.rs index 205de9e90210..a1e8a283bfef 100644 --- a/cumulus/parachains/runtimes/testing/rococo-parachain/src/lib.rs +++ b/cumulus/parachains/runtimes/testing/rococo-parachain/src/lib.rs @@ -420,7 +420,7 @@ parameter_types! { pub struct ParentOrParentsUnitPlurality; impl Contains for ParentOrParentsUnitPlurality { fn contains(location: &Location) -> bool { - matches!(location.unpack(), (1, []) | (1, [Plurality { id: BodyId::Unit, .. }])) + matches!(location.unpack(), (1, []) | (1, [Plurality { id: BodyId::Unit, .. }])) } } diff --git a/polkadot/xcm/src/v4/mod.rs b/polkadot/xcm/src/v4/mod.rs index cbb64c324843..4a3f9680a376 100644 --- a/polkadot/xcm/src/v4/mod.rs +++ b/polkadot/xcm/src/v4/mod.rs @@ -362,7 +362,14 @@ impl XcmContext { /// /// This is the inner XCM format and is version-sensitive. Messages are typically passed using the /// outer XCM format, known as `VersionedXcm`. -#[derive(Derivative, Encode, Decode, TypeInfo, xcm_procedural::XcmWeightInfoTrait, xcm_procedural::Builder)] +#[derive( + Derivative, + Encode, + Decode, + TypeInfo, + xcm_procedural::XcmWeightInfoTrait, + xcm_procedural::Builder, +)] #[derivative(Clone(bound = ""), Eq(bound = ""), PartialEq(bound = ""), Debug(bound = ""))] #[codec(encode_bound())] #[codec(decode_bound())]