Skip to content

Commit

Permalink
Fixed clippy
Browse files Browse the repository at this point in the history
Fixed benchmarking tests
  • Loading branch information
Roy Yang committed Nov 24, 2021
1 parent 308d6e2 commit 37d0827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/homa-lite/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ benchmarks! {
let _ = crate::Pallet::<T>::adjust_available_staking_balance(RawOrigin::Root.into(), AmountOf::<T>::max_value(), 1);
let _ = crate::Pallet::<T>::request_redeem(RawOrigin::Signed(caller.clone()).into(), amount, Permill::default());
}: {
let _ = crate::Pallet::<T>::process_redeem_requests_with_available_staking_balance(caller);
let _ = crate::Pallet::<T>::process_redeem_requests_with_available_staking_balance(&caller);
}

xcm_unbond {}: {
Expand Down
2 changes: 1 addition & 1 deletion modules/homa-lite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ pub mod module {
}
RedeemType::WithMint(minter, _) => {
let amount_redeemed =
Self::match_mint_with_redeem_request(&minter, &redeemer, redeem_amount_remaining)?;
Self::match_mint_with_redeem_request(minter, &redeemer, redeem_amount_remaining)?;
total_amount_redeemed = total_amount_redeemed.saturating_add(amount_redeemed);
redeem_amount_remaining = redeem_amount_remaining.saturating_sub(amount_redeemed);
if !Self::liquid_amount_is_above_minimum_threshold(redeem_amount_remaining) {
Expand Down

0 comments on commit 37d0827

Please sign in to comment.