diff --git a/token-lending/program/src/processor.rs b/token-lending/program/src/processor.rs index 1717fb5205e..2208f4bc145 100644 --- a/token-lending/program/src/processor.rs +++ b/token-lending/program/src/processor.rs @@ -534,9 +534,9 @@ fn _refresh_reserve<'a>( /// Lite version of refresh_reserve that should be used when the oracle price doesn't need to be updated /// BE CAREFUL WHEN USING THIS -fn _refresh_reserve_interest<'a>( +fn _refresh_reserve_interest( program_id: &Pubkey, - reserve_info: &AccountInfo<'a>, + reserve_info: &AccountInfo<'_>, clock: &Clock, ) -> ProgramResult { let mut reserve = Reserve::unpack(&reserve_info.data.borrow())?; diff --git a/token-lending/program/tests/helpers/mock_pyth.rs b/token-lending/program/tests/helpers/mock_pyth.rs index 0deac090b4a..9d7f3315657 100644 --- a/token-lending/program/tests/helpers/mock_pyth.rs +++ b/token-lending/program/tests/helpers/mock_pyth.rs @@ -127,7 +127,7 @@ impl Processor { msg!("Mock Pyth: Set price"); let price_account_info = next_account_info(account_info_iter)?; let data = &mut price_account_info.try_borrow_mut_data()?; - let mut price_account: &mut PriceAccount = load_mut(data).unwrap(); + let price_account: &mut PriceAccount = load_mut(data).unwrap(); price_account.agg.price = price; price_account.agg.conf = conf; diff --git a/token-lending/sdk/src/instruction.rs b/token-lending/sdk/src/instruction.rs index f85b59b3b15..216b6d7ca8a 100644 --- a/token-lending/sdk/src/instruction.rs +++ b/token-lending/sdk/src/instruction.rs @@ -506,7 +506,7 @@ pub enum LendingInstruction { /// 0. `[]` Reserve account. /// 1. `[signer]` fee payer. /// 3. '[]' System Program - ResizeReserve + ResizeReserve, } impl LendingInstruction { @@ -971,7 +971,7 @@ impl LendingInstruction { buf.extend_from_slice(&liquidity_amount.to_le_bytes()); } // special handling for this instruction, bc the instruction is too big to deserialize - Self::UpdateMarketMetadata => {}, + Self::UpdateMarketMetadata => {} Self::ResizeReserve => { buf.push(23); } @@ -1702,11 +1702,7 @@ pub fn update_market_metadata( } /// Creates a `ResizeReserve` instruction -pub fn resize_reserve( - program_id: Pubkey, - reserve_pubkey: Pubkey, - signer: Pubkey, -) -> Instruction { +pub fn resize_reserve(program_id: Pubkey, reserve_pubkey: Pubkey, signer: Pubkey) -> Instruction { Instruction { program_id, accounts: vec![