From 50df4fa989c0c56d165a7ebcdb9f0804f35f7998 Mon Sep 17 00:00:00 2001 From: Christian Krueger Date: Wed, 27 Nov 2024 09:18:33 -0600 Subject: [PATCH] made linter happy --- program/src/process_epoch_reward_buckets.rs | 2 +- program/src/process_epoch_reward_pool.rs | 4 ++-- program/src/process_operator_epoch_reward_pool.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/program/src/process_epoch_reward_buckets.rs b/program/src/process_epoch_reward_buckets.rs index 7900df5..573cfdc 100644 --- a/program/src/process_epoch_reward_buckets.rs +++ b/program/src/process_epoch_reward_buckets.rs @@ -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()?; diff --git a/program/src/process_epoch_reward_pool.rs b/program/src/process_epoch_reward_pool.rs index 067a90f..dc637d8 100644 --- a/program/src/process_epoch_reward_pool.rs +++ b/program/src/process_epoch_reward_pool.rs @@ -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 = diff --git a/program/src/process_operator_epoch_reward_pool.rs b/program/src/process_operator_epoch_reward_pool.rs index 93b9ec3..ee91561 100644 --- a/program/src/process_operator_epoch_reward_pool.rs +++ b/program/src/process_operator_epoch_reward_pool.rs @@ -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()?;