From 9f72fc0b9ea59fc2bd8b37fa1382707186f6b395 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Wed, 30 Oct 2024 19:42:39 +0100 Subject: [PATCH] remove unused variables --- .../nomination-pools/benchmarking/src/inner.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/substrate/frame/nomination-pools/benchmarking/src/inner.rs b/substrate/frame/nomination-pools/benchmarking/src/inner.rs index d5e9c1c9d64b..58d2f4bf5d62 100644 --- a/substrate/frame/nomination-pools/benchmarking/src/inner.rs +++ b/substrate/frame/nomination-pools/benchmarking/src/inner.rs @@ -692,7 +692,7 @@ mod benchmarks { n: Linear<1, { ::MaxMetadataLen::get() }>, ) { // Create a pool - let (depositor, pool_account) = + let (depositor, _pool_account) = create_pool_account::(0, Pools::::depositor_min_bond() * 2u32.into(), None); // Create metadata of the max possible size @@ -778,7 +778,7 @@ mod benchmarks { #[benchmark] fn set_commission() { // Create a pool - do not set a commission yet. - let (depositor, pool_account) = + let (depositor, _pool_account) = create_pool_account::(0, Pools::::depositor_min_bond() * 2u32.into(), None); // set a max commission Pools::::set_commission_max( @@ -830,7 +830,7 @@ mod benchmarks { #[benchmark] fn set_commission_max() { // Create a pool, setting a commission that will update when max commission is set. - let (depositor, pool_account) = create_pool_account::( + let (depositor, _pool_account) = create_pool_account::( 0, Pools::::depositor_min_bond() * 2u32.into(), Some(Perbill::from_percent(50)), @@ -854,7 +854,7 @@ mod benchmarks { #[benchmark] fn set_commission_change_rate() { // Create a pool - let (depositor, pool_account) = + let (depositor, _pool_account) = create_pool_account::(0, Pools::::depositor_min_bond() * 2u32.into(), None); #[extrinsic_call] @@ -885,7 +885,7 @@ mod benchmarks { #[benchmark] fn set_commission_claim_permission() { // Create a pool. - let (depositor, pool_account) = + let (depositor, _pool_account) = create_pool_account::(0, Pools::::depositor_min_bond() * 2u32.into(), None); #[extrinsic_call] @@ -911,12 +911,11 @@ mod benchmarks { fn set_claim_permission() { // Create a pool let min_create_bond = Pools::::depositor_min_bond(); - let (depositor, pool_account) = create_pool_account::(0, min_create_bond, None); + let (_depositor, pool_account) = create_pool_account::(0, min_create_bond, None); // Join pool let min_join_bond = MinJoinBond::::get().max(CurrencyOf::::minimum_balance()); let joiner = create_funded_user_with_balance::("joiner", 0, min_join_bond * 4u32.into()); - let joiner_lookup = T::Lookup::unlookup(joiner.clone()); Pools::::join(RuntimeOrigin::Signed(joiner.clone()).into(), min_join_bond, 1).unwrap(); // Sanity check join worked