From df429011d1cd4722c8ca2e6eaec34820a850b209 Mon Sep 17 00:00:00 2001 From: Andrei Silviu Dragnea Date: Fri, 16 Aug 2024 17:51:37 +0100 Subject: [PATCH] refactor: remove redundant references in entrypoint! macro --- sdk/program/src/entrypoint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/program/src/entrypoint.rs b/sdk/program/src/entrypoint.rs index d0d579411dcfe8..0be1ec34b48cb7 100644 --- a/sdk/program/src/entrypoint.rs +++ b/sdk/program/src/entrypoint.rs @@ -129,7 +129,7 @@ macro_rules! entrypoint { pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 { let (program_id, accounts, instruction_data) = unsafe { $crate::entrypoint::deserialize(input) }; - match $process_instruction(&program_id, &accounts, &instruction_data) { + match $process_instruction(program_id, &accounts, instruction_data) { Ok(()) => $crate::entrypoint::SUCCESS, Err(error) => error.into(), }