From 6ebbd6d95a15c46f997d8d03c64805fd69b13e91 Mon Sep 17 00:00:00 2001 From: Evan Batsell Date: Mon, 17 Jun 2024 11:19:40 -0400 Subject: [PATCH] clippies --- tests/src/spl_stake_pool_cli.rs | 2 ++ tests/tests/steward/test_algorithms.rs | 2 +- tests/tests/steward/test_parameters.rs | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/src/spl_stake_pool_cli.rs b/tests/src/spl_stake_pool_cli.rs index 930989b8..c9643c5a 100644 --- a/tests/src/spl_stake_pool_cli.rs +++ b/tests/src/spl_stake_pool_cli.rs @@ -30,6 +30,8 @@ macro_rules! unique_signers { } type Error = Box; + +#[allow(dead_code)] pub struct CliConfig { pub manager: Keypair, pub staker: Keypair, diff --git a/tests/tests/steward/test_algorithms.rs b/tests/tests/steward/test_algorithms.rs index c5c5ba6e..83e0b464 100644 --- a/tests/tests/steward/test_algorithms.rs +++ b/tests/tests/steward/test_algorithms.rs @@ -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, diff --git a/tests/tests/steward/test_parameters.rs b/tests/tests/steward/test_parameters.rs index 4bfe8d6f..591dce04 100644 --- a/tests/tests/steward/test_parameters.rs +++ b/tests/tests/steward/test_parameters.rs @@ -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); @@ -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()