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

Commit 79572ba

Browse files
committed
Run clippy + fmt
1 parent 0d2bf9d commit 79572ba

File tree

66 files changed

+152
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+152
-166
lines changed

associated-token-account/program-test/tests/create_idempotent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ async fn fail_account_exists_with_wrong_owner() {
153153
Account::pack(token_account, &mut associated_token_account.data).unwrap();
154154
let mut pt = program_test_2022(token_mint_address, true);
155155
pt.add_account(associated_token_address, associated_token_account);
156-
let (mut banks_client, payer, recent_blockhash) = pt.start().await;
156+
let (banks_client, payer, recent_blockhash) = pt.start().await;
157157

158158
// fail creating token account if non existent
159159
let instruction = create_associated_token_account_idempotent(
@@ -185,7 +185,7 @@ async fn fail_account_exists_with_wrong_owner() {
185185
#[tokio::test]
186186
async fn fail_non_ata() {
187187
let token_mint_address = Pubkey::new_unique();
188-
let (mut banks_client, payer, recent_blockhash) =
188+
let (banks_client, payer, recent_blockhash) =
189189
program_test_2022(token_mint_address, true).start().await;
190190

191191
let rent = banks_client.get_rent().await.unwrap();

associated-token-account/program-test/tests/process_create_associated_token_account.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async fn test_associated_token_address() {
2727
&spl_token_2022::id(),
2828
);
2929

30-
let (mut banks_client, payer, recent_blockhash) =
30+
let (banks_client, payer, recent_blockhash) =
3131
program_test_2022(token_mint_address, true).start().await;
3232
let rent = banks_client.get_rent().await.unwrap();
3333

@@ -78,7 +78,7 @@ async fn test_create_with_fewer_lamports() {
7878
&spl_token_2022::id(),
7979
);
8080

81-
let (mut banks_client, payer, recent_blockhash) =
81+
let (banks_client, payer, recent_blockhash) =
8282
program_test_2022(token_mint_address, true).start().await;
8383
let rent = banks_client.get_rent().await.unwrap();
8484
let expected_token_account_len =
@@ -139,7 +139,7 @@ async fn test_create_with_excess_lamports() {
139139
&spl_token_2022::id(),
140140
);
141141

142-
let (mut banks_client, payer, recent_blockhash) =
142+
let (banks_client, payer, recent_blockhash) =
143143
program_test_2022(token_mint_address, true).start().await;
144144
let rent = banks_client.get_rent().await.unwrap();
145145

@@ -200,7 +200,7 @@ async fn test_create_account_mismatch() {
200200
&spl_token_2022::id(),
201201
);
202202

203-
let (mut banks_client, payer, recent_blockhash) =
203+
let (banks_client, payer, recent_blockhash) =
204204
program_test_2022(token_mint_address, true).start().await;
205205

206206
let mut instruction = create_associated_token_account(
@@ -271,7 +271,7 @@ async fn test_create_associated_token_account_using_legacy_implicit_instruction(
271271
&spl_token_2022::id(),
272272
);
273273

274-
let (mut banks_client, payer, recent_blockhash) =
274+
let (banks_client, payer, recent_blockhash) =
275275
program_test_2022(token_mint_address, true).start().await;
276276
let rent = banks_client.get_rent().await.unwrap();
277277
let expected_token_account_len =

associated-token-account/program-test/tests/spl_token_create.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async fn success_create() {
2323
let associated_token_address =
2424
get_associated_token_address(&wallet_address, &token_mint_address);
2525

26-
let (mut banks_client, payer, recent_blockhash) =
26+
let (banks_client, payer, recent_blockhash) =
2727
program_test(token_mint_address, true).start().await;
2828
let rent = banks_client.get_rent().await.unwrap();
2929
let expected_token_account_len = Account::LEN;
@@ -69,7 +69,7 @@ async fn success_using_deprecated_instruction_creator() {
6969
let associated_token_address =
7070
get_associated_token_address(&wallet_address, &token_mint_address);
7171

72-
let (mut banks_client, payer, recent_blockhash) =
72+
let (banks_client, payer, recent_blockhash) =
7373
program_test(token_mint_address, true).start().await;
7474
let rent = banks_client.get_rent().await.unwrap();
7575
let expected_token_account_len = Account::LEN;

examples/rust/cross-program-invocation/tests/functional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async fn test_cross_program_invocation() {
3333
},
3434
);
3535

36-
let (mut banks_client, payer, recent_blockhash) = program_test.start().await;
36+
let (banks_client, payer, recent_blockhash) = program_test.start().await;
3737

3838
let mut transaction = Transaction::new_with_payer(
3939
&[Instruction::new_with_bincode(

examples/rust/custom-heap/tests/functional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use {
99
#[tokio::test]
1010
async fn test_custom_heap() {
1111
let program_id = Pubkey::from_str("CustomHeap111111111111111111111111111111111").unwrap();
12-
let (mut banks_client, payer, recent_blockhash) = ProgramTest::new(
12+
let (banks_client, payer, recent_blockhash) = ProgramTest::new(
1313
"spl_example_custom_heap",
1414
program_id,
1515
processor!(process_instruction),

examples/rust/logging/tests/functional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use {
1212
#[tokio::test]
1313
async fn test_logging() {
1414
let program_id = Pubkey::from_str("Logging111111111111111111111111111111111111").unwrap();
15-
let (mut banks_client, payer, recent_blockhash) = ProgramTest::new(
15+
let (banks_client, payer, recent_blockhash) = ProgramTest::new(
1616
"spl_example_logging",
1717
program_id,
1818
processor!(process_instruction),

examples/rust/sysvar/tests/functional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use {
1313
#[tokio::test]
1414
async fn test_sysvar() {
1515
let program_id = Pubkey::from_str("Sysvar1111111111111111111111111111111111111").unwrap();
16-
let (mut banks_client, payer, recent_blockhash) = ProgramTest::new(
16+
let (banks_client, payer, recent_blockhash) = ProgramTest::new(
1717
"spl_example_sysvar",
1818
program_id,
1919
processor!(process_instruction),

examples/rust/transfer-lamports/tests/functional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async fn test_lamport_transfer() {
3434
..Account::default()
3535
},
3636
);
37-
let (mut banks_client, payer, recent_blockhash) = program_test.start().await;
37+
let (banks_client, payer, recent_blockhash) = program_test.start().await;
3838

3939
let mut transaction = Transaction::new_with_payer(
4040
&[Instruction::new_with_bincode(

examples/rust/transfer-tokens/tests/functional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async fn success() {
3333
let rent = Rent::default();
3434

3535
// Start the program test
36-
let (mut banks_client, payer, recent_blockhash) = program_test.start().await;
36+
let (banks_client, payer, recent_blockhash) = program_test.start().await;
3737

3838
// Setup the mint, used in `spl_token::instruction::transfer_checked`
3939
let transaction = Transaction::new_signed_with_payer(

feature-proposal/program/tests/functional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async fn test_basic() {
166166
async fn test_expired() {
167167
let feature_proposal = Keypair::new();
168168

169-
let (mut banks_client, payer, recent_blockhash) = program_test().start().await;
169+
let (banks_client, payer, recent_blockhash) = program_test().start().await;
170170

171171
// Create a new feature proposal
172172
let mut transaction = Transaction::new_with_payer(

0 commit comments

Comments
 (0)