From 3702ce5da7e8d7ed4e028c95d4a49ce9c3f61110 Mon Sep 17 00:00:00 2001 From: giuseppere Date: Thu, 19 Dec 2024 10:29:52 +0100 Subject: [PATCH] prefix with `_` unused variables --- substrate/frame/staking/src/migrations.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/substrate/frame/staking/src/migrations.rs b/substrate/frame/staking/src/migrations.rs index c4828054d597..616aa94fa388 100644 --- a/substrate/frame/staking/src/migrations.rs +++ b/substrate/frame/staking/src/migrations.rs @@ -73,7 +73,7 @@ pub mod v17 { v16::MaxValidatorsCount::::kill(); let mut eras_stakers_keys = - v16::ErasStakers::::iter_keys().map(|(k1, k2)| k1).collect::>(); + v16::ErasStakers::::iter_keys().map(|(k1, _k2)| k1).collect::>(); eras_stakers_keys.dedup(); for k in eras_stakers_keys { let mut removal_result = @@ -87,8 +87,9 @@ pub mod v17 { } } - let mut eras_stakers_clipped_keys = - v16::ErasStakersClipped::::iter_keys().map(|(k1, k2)| k1).collect::>(); + let mut eras_stakers_clipped_keys = v16::ErasStakersClipped::::iter_keys() + .map(|(k1, _k2)| k1) + .collect::>(); eras_stakers_clipped_keys.dedup(); for k in eras_stakers_clipped_keys { let mut removal_result =