Skip to content

Commit

Permalink
Make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuda committed Dec 23, 2021
1 parent 6771008 commit fe0fcc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions anker/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ fn process_send_rewards(

invoke_signed(
&instr,
// This vec is not useless, we want the data to go on the heap, not on the stack!
#[allow(clippy::useless_vec)]
&vec![
accounts.ust_reserve_account.clone(),
accounts.authority_signer_key.clone(),
Expand Down
2 changes: 1 addition & 1 deletion cli/src/anker_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl AnkerState {
};

Ok(AnkerState {
anker_program_id: anker_program_id.clone(),
anker_program_id: *anker_program_id,
anker,
b_sol_total_supply_amount,
pool_st_sol_account,
Expand Down

0 comments on commit fe0fcc8

Please sign in to comment.