Skip to content

Commit

Permalink
Pacify nightly clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Oct 3, 2019
1 parent 8b30206 commit 934d584
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub const SUCCESS: u32 = 0;
#[macro_export]
macro_rules! entrypoint {
($process_instruction:ident) => {
#[allow(clippy::missing_safety_doc)]
#[no_mangle]
pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u32 {
unsafe {
Expand All @@ -38,6 +39,7 @@ macro_rules! entrypoint {
}

/// Deserialize the input parameters
#[allow(clippy::missing_safety_doc)]
#[allow(clippy::type_complexity)]
pub unsafe fn deserialize<'a>(input: *mut u8) -> (&'a Pubkey, Vec<AccountInfo<'a>>, &'a [u8]) {
let mut offset: usize = 0;
Expand Down

0 comments on commit 934d584

Please sign in to comment.