From d6f16cd03da9d2321636d15f09a879ae8d241401 Mon Sep 17 00:00:00 2001 From: wangjj9219 <183318287@qq.com> Date: Thu, 12 Oct 2023 22:10:53 +0800 Subject: [PATCH] format --- lib/stable-asset/src/lib.rs | 7 +------ lib/stable-asset/src/tests.rs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/stable-asset/src/lib.rs b/lib/stable-asset/src/lib.rs index 56e7c27..84d1c2b 100644 --- a/lib/stable-asset/src/lib.rs +++ b/lib/stable-asset/src/lib.rs @@ -303,12 +303,7 @@ pub mod pallet { use crate::WeightInfo; use codec::Codec; use frame_support::traits::tokens::fungibles; - use frame_support::{ - dispatch::DispatchResult, - pallet_prelude::*, - traits::EnsureOrigin, - PalletId, - }; + use frame_support::{dispatch::DispatchResult, pallet_prelude::*, traits::EnsureOrigin, PalletId}; use frame_system::pallet_prelude::*; use sp_runtime::{ traits::{CheckedAdd, CheckedDiv, CheckedMul, CheckedSub, One, Zero}, diff --git a/lib/stable-asset/src/tests.rs b/lib/stable-asset/src/tests.rs index 813db2e..96095b5 100644 --- a/lib/stable-asset/src/tests.rs +++ b/lib/stable-asset/src/tests.rs @@ -19,9 +19,9 @@ use crate::{ mock::*, Error, MintResult, RedeemMultiResult, RedeemProportionResult, RedeemSingleResult, StableAssetPoolInfo, SwapResult, }; +use frame_support::traits::fungibles::{Inspect, Mutate}; use frame_support::{assert_noop, assert_ok}; use sp_runtime::DispatchError; -use frame_support::traits::fungibles::{Inspect, Mutate}; pub const BALANCE_OFF: u128 = 1;