Skip to content

Commit

Permalink
made linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
coachchucksol committed Nov 27, 2024
1 parent b0d2122 commit 50df4fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion program/src/process_epoch_reward_buckets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn process_process_epoch_reward_buckets(
let ballot_box_data = ballot_box.try_borrow_data()?;
let ballot_box_account = BallotBox::try_from_slice_unchecked(&ballot_box_data)?;

ballot_box_account.clone()
*ballot_box_account
};

let mut epoch_reward_router_data = epoch_reward_router.try_borrow_mut_data()?;
Expand Down
4 changes: 2 additions & 2 deletions program/src/process_epoch_reward_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ pub fn process_process_epoch_reward_pool(
let epoch_snapshot_data = epoch_snapshot.try_borrow_data()?;
let epoch_snapshot_account = EpochSnapshot::try_from_slice_unchecked(&epoch_snapshot_data)?;

epoch_snapshot_account.fees().clone()
*epoch_snapshot_account.fees()
};

let account_balance = epoch_reward_router.try_borrow_lamports()?.clone();
let account_balance = **epoch_reward_router.try_borrow_lamports()?;

let mut epoch_reward_router_data = epoch_reward_router.try_borrow_mut_data()?;
let epoch_reward_router_account =
Expand Down
4 changes: 2 additions & 2 deletions program/src/process_operator_epoch_reward_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ pub fn process_process_operator_epoch_reward_pool(
let operator_snapshot_account =
OperatorSnapshot::try_from_slice_unchecked(&operator_snapshot_data)?;

operator_snapshot_account.clone()
*operator_snapshot_account
};

let account_balance = operator_epoch_reward_router.try_borrow_lamports()?.clone();
let account_balance = **operator_epoch_reward_router.try_borrow_lamports()?;

let mut operator_epoch_reward_router_data =
operator_epoch_reward_router.try_borrow_mut_data()?;
Expand Down

0 comments on commit 50df4fa

Please sign in to comment.