From 0e6fd2dcc773455ec680f7ad84ac503085f0dafb Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Sun, 14 Aug 2022 09:52:40 +0800 Subject: [PATCH] cargo fmt --- parachains/pallets/ping/src/lib.rs | 8 +++++++- primitives/utility/src/lib.rs | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/parachains/pallets/ping/src/lib.rs b/parachains/pallets/ping/src/lib.rs index 518a9e43ec..f6e85a7bb8 100644 --- a/parachains/pallets/ping/src/lib.rs +++ b/parachains/pallets/ping/src/lib.rs @@ -118,7 +118,13 @@ pub mod pallet { ) { Ok((hash, cost)) => { Pings::::insert(seq, n); - Self::deposit_event(Event::PingSent(para, seq, payload.to_vec(), hash, cost)); + Self::deposit_event(Event::PingSent( + para, + seq, + payload.to_vec(), + hash, + cost, + )); }, Err(e) => { Self::deposit_event(Event::ErrorSendingPing( diff --git a/primitives/utility/src/lib.rs b/primitives/utility/src/lib.rs index f4aa8b7546..6e2362667e 100644 --- a/primitives/utility/src/lib.rs +++ b/primitives/utility/src/lib.rs @@ -22,7 +22,10 @@ use codec::Encode; use cumulus_primitives_core::{MessageSendError, UpwardMessageSender}; use frame_support::{ - traits::{Get, tokens::{fungibles, fungibles::Inspect}}, + traits::{ + tokens::{fungibles, fungibles::Inspect}, + Get, + }, weights::Weight, }; use polkadot_runtime_common::xcm_sender::ConstantPrice;