Skip to content

Commit

Permalink
clippies
Browse files Browse the repository at this point in the history
  • Loading branch information
ebatsell committed Jun 17, 2024
1 parent 8688a49 commit 6ebbd6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/src/spl_stake_pool_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ macro_rules! unique_signers {
}

type Error = Box<dyn std::error::Error>;

#[allow(dead_code)]
pub struct CliConfig {
pub manager: Keypair,
pub staker: Keypair,
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/steward/test_algorithms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ fn test_increase_stake_calculation() {
&state,
0,
u64::from(validator_list[0].active_stake_lamports) - minimum_delegation,
2000 * LAMPORTS_PER_SOL - (state.num_pool_validators as u64 * minimum_delegation),
2000 * LAMPORTS_PER_SOL - (state.num_pool_validators * minimum_delegation),
&validator_list_bigvec,
1002 * LAMPORTS_PER_SOL,
minimum_delegation,
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/steward/test_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ fn test_compute_score_slot_range() {
// Cannot be below min_slots_per_epoch
let new_value = min_slots_per_epoch - 1;
let update_parameters = UpdateParametersArgs {
compute_score_slot_range: Some(new_value as u64),
compute_score_slot_range: Some(new_value),
..UpdateParametersArgs::default()
};
let result = _test_parameter(&update_parameters, None, Some(slots_per_epoch), None);
Expand All @@ -845,7 +845,7 @@ fn test_compute_score_slot_range() {

{
// In range
let new_value = COMPUTE_SCORE_SLOT_RANGE_MIN as u64 + 1;
let new_value = COMPUTE_SCORE_SLOT_RANGE_MIN + 1;
let update_parameters = UpdateParametersArgs {
compute_score_slot_range: Some(new_value),
..UpdateParametersArgs::default()
Expand Down

0 comments on commit 6ebbd6d

Please sign in to comment.