Skip to content

Commit fa49062

Browse files
committed
Reexport program result
1 parent a020ce4 commit fa49062

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sdk/pinocchio/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ pub mod sysvars;
240240
#[deprecated(since = "0.7.0", note = "Use the `entrypoint` module instead")]
241241
pub use entrypoint::lazy as lazy_entrypoint;
242242
pub use solana_program_error as program_error;
243+
pub use solana_program_error::ProgramResult;
243244

244245
/// Maximum number of accounts that a transaction may process.
245246
///
@@ -259,9 +260,6 @@ const BPF_ALIGN_OF_U128: usize = 8;
259260
/// Return value for a successful program execution.
260261
pub const SUCCESS: u64 = 0;
261262

262-
/// The result of a program execution.
263-
pub type ProgramResult = Result<(), program_error::ProgramError>;
264-
265263
/// Module with functions to provide hints to the compiler about how code
266264
/// should be optimized.
267265
pub mod hint {

0 commit comments

Comments
 (0)