Skip to content

Commit 840dd01

Browse files
committed
fix: clippy warnings in accounts and spo state
Signed-off-by: William Hankins <[email protected]>
1 parent b920cfe commit 840dd01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/accounts_state/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ impl State {
948948
pub fn handle_withdrawals(&mut self, withdrawals_msg: &WithdrawalsMessage) -> Result<()> {
949949
for withdrawal in withdrawals_msg.withdrawals.iter() {
950950
let mut stake_addresses = self.stake_addresses.lock().unwrap();
951-
stake_addresses.process_withdrawal(&withdrawal);
951+
stake_addresses.process_withdrawal(withdrawal);
952952
}
953953

954954
Ok(())

modules/spo_state/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ impl State {
618618
};
619619
let mut stake_addresses = stake_addresses.lock().unwrap();
620620
for withdrawal in withdrawals_msg.withdrawals.iter() {
621-
stake_addresses.process_withdrawal(&withdrawal);
621+
stake_addresses.process_withdrawal(withdrawal);
622622
}
623623

624624
Ok(())

0 commit comments

Comments
 (0)