Skip to content

Commit

Permalink
work clippy please
Browse files Browse the repository at this point in the history
  • Loading branch information
girazoki committed Jan 23, 2024
1 parent eb8fa4f commit eab766f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/dancebox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ impl RemoveParaIdsWithNoCredits for RemoveParaIdsWithNoCreditsImpl {
.unwrap_or_default();

let (block_production_costs, _) = <Runtime as pallet_services_payment::Config>::ProvideBlockProductionCost::block_cost(para_id);
let regular_credits = Balances::free_balance(pallet_services_payment::Pallet::<Runtime>::parachain_tank(para_id.clone()))
let regular_credits = Balances::free_balance(pallet_services_payment::Pallet::<Runtime>::parachain_tank(*para_id))
.saturating_div(block_production_costs);

(free_credits as u128).saturating_add(regular_credits) >= credits_for_2_sessions.into()
Expand Down

0 comments on commit eab766f

Please sign in to comment.