Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjj9219 committed Sep 27, 2022
1 parent e442262 commit 02ae3f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/incentives/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ impl<T: Config, GetPoolId: Get<PoolId>> OnRuntimeUpgrade for ResetRewardsRecord<
}

// reset PoolInfos
let mut pool_info = orml_rewards::PoolInfo::<Balance, Balance, CurrencyId>::default();
pool_info.total_shares = total_share;
let pool_info = orml_rewards::PoolInfo::<Balance, Balance, CurrencyId> {
total_shares: total_share,
..Default::default()
};
orml_rewards::PoolInfos::<T>::insert(&pool_id, pool_info);

0
Expand Down

0 comments on commit 02ae3f6

Please sign in to comment.