Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 7f08946

Browse files
committed
Fix clippy in tests
1 parent 5d5a1d9 commit 7f08946

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

stake-pool/program/tests/helpers/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ pub async fn get_account(banks_client: &mut BanksClient, pubkey: &Pubkey) -> Sol
7878
.expect("account empty")
7979
}
8080

81+
#[allow(clippy::too_many_arguments)]
8182
pub async fn create_mint(
8283
banks_client: &mut BanksClient,
8384
payer: &Keypair,
@@ -210,6 +211,7 @@ pub async fn transfer_spl_tokens(
210211
banks_client.process_transaction(transaction).await.unwrap();
211212
}
212213

214+
#[allow(clippy::too_many_arguments)]
213215
pub async fn create_token_account(
214216
banks_client: &mut BanksClient,
215217
payer: &Keypair,

stake-pool/program/tests/initialize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async fn create_required_accounts(
4646
.await
4747
.unwrap();
4848

49-
let required_extensions = ExtensionType::get_required_init_account_extensions(&mint_extensions);
49+
let required_extensions = ExtensionType::get_required_init_account_extensions(mint_extensions);
5050
create_token_account(
5151
banks_client,
5252
payer,

0 commit comments

Comments
 (0)