pub fn verify_account_references(
        accounts: &[(Pubkey, RefCell<Account>)],
    ) -> Result<(), InstructionError> {
        for (_, account) in accounts.iter() {
            account
                .try_borrow_mut()
                .map_err(|_| InstructionError::AccountBorrowOutstanding)?;
        }
        Ok(())
    }
/// Verify there are no outstanding borrows
Verify there are no outstanding borrows
Verify there are no outstanding borrows
pub fn verify_account_references(
        accounts: &[(Pubkey, RefCell<Account>)],
    ) -> Result<(), InstructionError> {
        for (_, account) in accounts.iter() {
            account
                .try_borrow_mut()
                .map_err(|_| InstructionError::AccountBorrowOutstanding)?;
        }
        Ok(())
    }
pub fn verify_account_references ( accounts : & [ ( Pubkey , RefCell < Account > ) ] , ) -> Result < ( ) , InstructionError > { for ( _ , account ) in accounts . iter ( ) { account . try_borrow_mut ( ) . map_err ( | _ | InstructionError :: AccountBorrowOutstanding ) ? ; } Ok ( ( ) ) }
Verify there are no outstanding borrows
Verify there are no outstanding borrows
accounts
&[(Pubkey, RefCell<Account>)]
accounts
&[(Pubkey, RefCell<Account>)]