Skip to content

Commit

Permalink
fix: clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nakul1010 committed Dec 6, 2023
1 parent 76ec7b9 commit 08b1cdc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/issue/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub(crate) mod vault_registry {
}

pub fn ensure_not_banned<T: crate::Config>(vault_id: &DefaultVaultId<T>) -> DispatchResult {
<vault_registry::Pallet<T>>::_ensure_not_banned(vault_id)
<vault_registry::Pallet<T>>::ensure_not_banned(vault_id)
}

pub fn decrease_to_be_issued_tokens<T: crate::Config>(
Expand Down
2 changes: 1 addition & 1 deletion crates/redeem/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub(crate) mod vault_registry {
}

pub fn ensure_not_banned<T: crate::Config>(vault_id: &DefaultVaultId<T>) -> DispatchResult {
<vault_registry::Pallet<T>>::_ensure_not_banned(vault_id)
<vault_registry::Pallet<T>>::ensure_not_banned(vault_id)
}

pub fn is_vault_below_premium_threshold<T: crate::Config>(
Expand Down
2 changes: 1 addition & 1 deletion crates/replace/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub(crate) mod vault_registry {
}

pub fn ensure_not_banned<T: crate::Config>(vault_id: &DefaultVaultId<T>) -> DispatchResult {
<vault_registry::Pallet<T>>::_ensure_not_banned(vault_id)
<vault_registry::Pallet<T>>::ensure_not_banned(vault_id)
}

pub fn try_increase_to_be_issued_tokens<T: crate::Config>(
Expand Down
6 changes: 3 additions & 3 deletions parachain/runtime/runtime-tests/src/parachain/redeem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ mod spec_based_tests {
);
check_redeem_status(USER, RedeemRequestStatus::Reimbursed(true));
assert_noop!(
VaultRegistryPallet::_ensure_not_banned(&vault_id),
VaultRegistryPallet::ensure_not_banned(&vault_id),
VaultRegistryError::VaultBanned
);
});
Expand Down Expand Up @@ -1005,7 +1005,7 @@ mod spec_based_tests {
})
);
assert_noop!(
VaultRegistryPallet::_ensure_not_banned(&vault_id),
VaultRegistryPallet::ensure_not_banned(&vault_id),
VaultRegistryError::VaultBanned
);
});
Expand Down Expand Up @@ -1347,7 +1347,7 @@ fn integration_test_execute_redeem_on_banned_vault_succeeds() {

// should now be banned
assert_noop!(
VaultRegistryPallet::_ensure_not_banned(&vault_id),
VaultRegistryPallet::ensure_not_banned(&vault_id),
VaultRegistryError::VaultBanned
);

Expand Down

0 comments on commit 08b1cdc

Please sign in to comment.