Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Aug 3, 2024
1 parent edb67e2 commit b307afd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions sdk/entrypoint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
//! [`bpf_loader`]: crate::bpf_loader
extern crate alloc;
// need to re-export msg for custom_heap_default macro
pub use solana_msg::msg as __msg;
use {
alloc::vec::Vec,
solana_account_info::AccountInfo,
solana_account_info::AccountInfo,
solana_program_error::ProgramError,
solana_pubkey::Pubkey,
std::{
Expand All @@ -20,8 +22,6 @@ use {
slice::{from_raw_parts, from_raw_parts_mut},
},
};
// need to re-export msg for custom_heap_default macro
pub use solana_msg::msg as __msg;

pub type ProgramResult = ResultGeneric<(), ProgramError>;

Expand Down Expand Up @@ -129,8 +129,7 @@ macro_rules! entrypoint {
/// # Safety
#[no_mangle]
pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
let (program_id, accounts, instruction_data) =
unsafe { $crate::deserialize(input) };
let (program_id, accounts, instruction_data) = unsafe { $crate::deserialize(input) };
match $process_instruction(&program_id, &accounts, &instruction_data) {
Ok(()) => $crate::SUCCESS,
Err(error) => error.into(),
Expand Down
5 changes: 3 additions & 2 deletions sdk/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,9 @@ pub use solana_short_vec as short_vec;
pub use wasm_bindgen::prelude::wasm_bindgen;
pub use {
solana_account_info::{self as account_info, debug_account_data},
solana_entrypoint::{self as entrypoint, custom_heap_default, custom_panic_default},
solana_entrypoint::entrypoint,
solana_entrypoint::{
self as entrypoint, custom_heap_default, custom_panic_default, entrypoint,
},
solana_msg::msg,
solana_pubkey as pubkey,
};
Expand Down

0 comments on commit b307afd

Please sign in to comment.