From 161ddd9cd2da04f048dd301c77ac81ad688d9d6e Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Tue, 24 Sep 2024 05:33:25 +0000 Subject: [PATCH] remove unneeded data borrow --- program/src/mine.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/program/src/mine.rs b/program/src/mine.rs index 0daba4b..d0fc76a 100644 --- a/program/src/mine.rs +++ b/program/src/mine.rs @@ -211,8 +211,6 @@ pub fn process_mine(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult // // Busses are limited to distributing 1 ORE per epoch. This is also the maximum amount that will be paid out // for any given hash. - let mut bus_data = bus_info.data.borrow_mut(); - let bus = Bus::try_from_bytes_mut(&mut bus_data)?; let reward_actual = reward.min(bus.rewards).min(ONE_ORE); // Update balances.