From f44d42ae85e408dea2d42221a2e72a616a8dda32 Mon Sep 17 00:00:00 2001 From: Roznovjak Date: Mon, 19 Aug 2024 16:01:39 +0200 Subject: [PATCH] formatting --- integration-tests/src/oracle.rs | 4 +--- runtime/basilisk/src/benchmarking/route_executor.rs | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/integration-tests/src/oracle.rs b/integration-tests/src/oracle.rs index e73d1a2a64..6b6a5beeba 100644 --- a/integration-tests/src/oracle.rs +++ b/integration-tests/src/oracle.rs @@ -3,9 +3,7 @@ use crate::kusama_test_net::*; use basilisk_runtime::{EmaOracle, RuntimeOrigin, XYKOracleSourceIdentifier, XYK}; -use frame_support::{ - assert_ok, -}; +use frame_support::assert_ok; use hydradx_traits::{AggregatedPriceOracle, OraclePeriod::*}; use pallet_ema_oracle::OracleError; use xcm_emulator::TestExt; diff --git a/runtime/basilisk/src/benchmarking/route_executor.rs b/runtime/basilisk/src/benchmarking/route_executor.rs index 07c9a640d8..5644d49fa9 100644 --- a/runtime/basilisk/src/benchmarking/route_executor.rs +++ b/runtime/basilisk/src/benchmarking/route_executor.rs @@ -21,18 +21,16 @@ use crate::{AccountId, AssetId, Balance, Currencies, EmaOracle, Router, Runtime, use super::*; use frame_benchmarking::{account, BenchmarkError}; use frame_support::{ - assert_ok, ensure, parameter_types, + assert_ok, dispatch::DispatchResult, + ensure, parameter_types, traits::{OnFinalize, OnInitialize}, }; use frame_system::RawOrigin; use hydradx_traits::router::{inverse_route, AssetPair, PoolType, RouterT, Trade}; use orml_benchmarking::runtime_benchmarks; use orml_traits::{MultiCurrency, MultiCurrencyExtended}; -use primitives::{ - BlockNumber, - constants::currency::UNITS, -}; +use primitives::{constants::currency::UNITS, BlockNumber}; use sp_runtime::{FixedPointNumber, FixedU128}; use sp_std::vec; pub const INITIAL_BALANCE: Balance = 10_000_000 * UNITS;