Skip to content

Commit 8183b15

Browse files
committed
clippy
1 parent 6d274d8 commit 8183b15

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

program/tests/move_stake.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ fn test_move_stake(
6969

7070
true_up_transient_stake_epoch(
7171
&mut ctx.mollusk,
72-
&mut ctx.tracker.as_mut().unwrap(),
72+
ctx.tracker.as_mut().unwrap(),
7373
&move_source,
7474
&mut move_source_account,
7575
move_source_type,
7676
);
7777

7878
true_up_transient_stake_epoch(
7979
&mut ctx.mollusk,
80-
&mut ctx.tracker.as_mut().unwrap(),
80+
ctx.tracker.as_mut().unwrap(),
8181
&move_dest,
8282
&mut move_dest_account,
8383
move_dest_type,

program/tests/program_test.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use {
2323
instruction as vote_instruction,
2424
state::{VoteInit, VoteStateV4},
2525
},
26-
test_case::test_matrix,
2726
};
2827

2928
pub const USER_STARTING_LAMPORTS: u64 = 10_000_000_000_000; // 10k sol
@@ -203,28 +202,6 @@ pub async fn get_effective_stake(banks_client: &mut BanksClient, pubkey: &Pubkey
203202
}
204203
}
205204

206-
async fn get_minimum_delegation(context: &mut ProgramTestContext) -> u64 {
207-
let transaction = Transaction::new_signed_with_payer(
208-
&[ixn::get_minimum_delegation()],
209-
Some(&context.payer.pubkey()),
210-
&[&context.payer],
211-
context.last_blockhash,
212-
);
213-
let mut data = context
214-
.banks_client
215-
.simulate_transaction(transaction)
216-
.await
217-
.unwrap()
218-
.simulation_details
219-
.unwrap()
220-
.return_data
221-
.unwrap()
222-
.data;
223-
data.resize(8, 0);
224-
225-
data.try_into().map(u64::from_le_bytes).unwrap()
226-
}
227-
228205
pub async fn create_independent_stake_account(
229206
context: &mut ProgramTestContext,
230207
authorized: &Authorized,

0 commit comments

Comments
 (0)