Skip to content

Commit

Permalink
prefix with _ unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
re-gius committed Dec 19, 2024
1 parent 831f1b0 commit 3702ce5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions substrate/frame/staking/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub mod v17 {
v16::MaxValidatorsCount::<T>::kill();

let mut eras_stakers_keys =
v16::ErasStakers::<T>::iter_keys().map(|(k1, k2)| k1).collect::<Vec<_>>();
v16::ErasStakers::<T>::iter_keys().map(|(k1, _k2)| k1).collect::<Vec<_>>();
eras_stakers_keys.dedup();
for k in eras_stakers_keys {
let mut removal_result =
Expand All @@ -87,8 +87,9 @@ pub mod v17 {
}
}

let mut eras_stakers_clipped_keys =
v16::ErasStakersClipped::<T>::iter_keys().map(|(k1, k2)| k1).collect::<Vec<_>>();
let mut eras_stakers_clipped_keys = v16::ErasStakersClipped::<T>::iter_keys()
.map(|(k1, _k2)| k1)
.collect::<Vec<_>>();
eras_stakers_clipped_keys.dedup();
for k in eras_stakers_clipped_keys {
let mut removal_result =
Expand Down

0 comments on commit 3702ce5

Please sign in to comment.