Skip to content

Commit df52b45

Browse files
mvinesjoncinque
authored andcommitted
Drop lifetimes
1 parent 5c78dce commit df52b45

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

program/src/entrypoint.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
//! Program entrypoint
22
33
use solana_program::{
4-
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, info,
5-
program_error::ProgramError, pubkey::Pubkey,
4+
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, program_error::ProgramError,
5+
pubkey::Pubkey,
66
};
77
use std::str::from_utf8;
88

99
entrypoint!(process_instruction);
10-
fn process_instruction<'a>(
10+
fn process_instruction(
1111
_program_id: &Pubkey,
12-
_accounts: &'a [AccountInfo<'a>],
12+
_accounts: &[AccountInfo],
1313
instruction_data: &[u8],
1414
) -> ProgramResult {
15-
info!("hi");
1615
from_utf8(instruction_data).map_err(|_| ProgramError::InvalidInstructionData)?;
1716
Ok(())
1817
}

0 commit comments

Comments
 (0)