Skip to content

Commit

Permalink
fmt fix and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rwwwx committed Aug 26, 2024
1 parent 109786a commit 93295a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion programs/rewards/src/instructions/change_delegate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn process_change_delegate<'a>(
program_id: &Pubkey,
accounts: &'a [AccountInfo<'a>],
staked_amount: u64,
new_delegate: &Pubkey
new_delegate: &Pubkey,
) -> ProgramResult {
let account_info_iter = &mut accounts.iter().enumerate();

Expand Down
7 changes: 1 addition & 6 deletions programs/rewards/src/instructions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,7 @@ pub fn process_instruction<'a>(
new_delegate,
} => {
msg!("RewardsInstruction: ChangeDelegate");
process_change_delegate(
program_id,
accounts,
staked_amount,
&new_delegate,
)
process_change_delegate(program_id, accounts, staked_amount, &new_delegate)
}
}
}
1 change: 1 addition & 0 deletions programs/rewards/tests/rewards/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ impl TestRewards {
mining_account
}

#[allow(clippy::too_many_arguments)]
pub async fn change_delegate(
&self,
context: &mut ProgramTestContext,
Expand Down

0 comments on commit 93295a4

Please sign in to comment.