Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nakul1010 committed Aug 31, 2023
1 parent 4955287 commit 4e911a2
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 20 deletions.
97 changes: 84 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions parachain/runtime/runtime-tests/src/parachain/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ fn integration_test_replace_execute_replace_success() {
test_with(|old_vault_id, new_vault_id| {
let accept_amount = new_vault_id.wrapped(10000);

let (redeem_id, redeem, _issue_id, issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);
let (redeem_id, redeem, _issue_id, _issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);

let pre_execute_state = ParachainTwoVaultState::get(&old_vault_id, &new_vault_id);

Expand Down Expand Up @@ -586,7 +586,7 @@ fn integration_test_replace_execute_replace_old_vault_liquidated() {
test_with(|old_vault_id, new_vault_id| {
let accept_amount = new_vault_id.wrapped(10000);

let (redeem_id, redeem, _issue_id, issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);
let (redeem_id, redeem, _issue_id, _issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);

let old = CoreVaultData::vault(old_vault_id.clone());

Expand Down Expand Up @@ -629,7 +629,7 @@ fn integration_test_replace_execute_replace_new_vault_liquidated() {
test_with(|old_vault_id, new_vault_id| {
let accept_amount = new_vault_id.wrapped(10000);

let (redeem_id, redeem, _issue_id, issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);
let (redeem_id, redeem, _issue_id, _issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);

liquidate_vault(&new_vault_id);

Expand Down Expand Up @@ -657,7 +657,7 @@ fn integration_test_replace_execute_replace_both_vaults_liquidated() {
test_with(|old_vault_id, new_vault_id| {
let accept_amount = new_vault_id.wrapped(10000);

let (redeem_id, redeem, _issue_id, issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);
let (redeem_id, redeem, _issue_id, _issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);

let old = CoreVaultData::vault(old_vault_id.clone());

Expand Down Expand Up @@ -710,7 +710,7 @@ fn integration_test_replace_execute_replace_with_cancelled() {
fn integration_test_replace_cancel_replace_success() {
test_with(|old_vault_id, new_vault_id| {
let accept_amount = new_vault_id.wrapped(10000);
let (redeem_id, redeem, _issue_id, issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);
let (redeem_id, redeem, _issue_id, _issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);
let pre_cancellation_state = ParachainTwoVaultState::get(&old_vault_id, &new_vault_id);
cancel_replace(redeem_id);

Expand All @@ -732,7 +732,7 @@ fn integration_test_replace_cancel_replace_success() {
fn integration_test_replace_cancel_replace_old_vault_liquidated() {
test_with(|old_vault_id, new_vault_id| {
let accept_amount = new_vault_id.wrapped(10000);
let (redeem_id, redeem, _issue_id, issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);
let (redeem_id, redeem, _issue_id, _issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);

let old = CoreVaultData::vault(old_vault_id.clone());

Expand Down Expand Up @@ -769,7 +769,7 @@ fn integration_test_replace_cancel_replace_old_vault_liquidated() {
fn integration_test_replace_cancel_replace_new_vault_liquidated() {
test_with(|old_vault_id, new_vault_id| {
let accept_amount = new_vault_id.wrapped(10000);
let (redeem_id, redeem, _issue_id, issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);
let (redeem_id, redeem, _issue_id, _issue) = setup_replace(accept_amount, &old_vault_id, &new_vault_id);

liquidate_vault(&new_vault_id);

Expand Down

0 comments on commit 4e911a2

Please sign in to comment.