Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoka committed Mar 18, 2024
1 parent 0d1fc9e commit bee75f3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions runtime/hydradx/src/benchmarking/route_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
#![allow(clippy::result_large_err)]

use crate::{
AccountId, AssetId, Balance, Currencies, InsufficientEDinHDX, Omnipool, Router, Runtime, RuntimeOrigin, System,
LBP, XYK,
AccountId, AssetId, Balance, Currencies, InsufficientEDinHDX, Router, Runtime, RuntimeOrigin, System, LBP, XYK,
};

use super::*;
use crate::benchmarking::dca::HDX;
use crate::benchmarking::tokens::update_balance;
use frame_benchmarking::{account, BenchmarkError};
use frame_support::dispatch::DispatchResult;
use frame_support::{assert_ok, ensure};
Expand All @@ -34,8 +32,6 @@ use hydradx_traits::router::{PoolType, RouterT, Trade};
use orml_benchmarking::runtime_benchmarks;
use orml_traits::{MultiCurrency, MultiCurrencyExtended};
use primitives::constants::currency::UNITS;
use sp_runtime::FixedU128;
use sp_runtime::Permill;
use sp_std::vec;
pub const INITIAL_BALANCE: Balance = 10_000_000 * UNITS;

Expand Down Expand Up @@ -262,7 +258,7 @@ runtime_benchmarks! {
Router::set_route(
RawOrigin::Signed(caller.clone()).into(),
AssetPair::new(HDX, asset_6),
route.clone(),
route,
)?;

let better_route = vec![Trade {
Expand Down

0 comments on commit bee75f3

Please sign in to comment.