Ver Fonte

rustfmt: use entrypoint full path

This PR swaps any calls to the `entrypoint!` macro with the full path, ie: `solana_program::entrypoint!`.

This will play a role in the effort to introduce a linting standard to SPL.
Joe C há 1 ano atrás
pai
commit
1679cf9388
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      program/src/entrypoint.rs

+ 3 - 3
program/src/entrypoint.rs

@@ -2,11 +2,11 @@
 
 use crate::{error::TokenError, processor::Processor};
 use solana_program::{
-    account_info::AccountInfo, entrypoint, entrypoint::ProgramResult,
-    program_error::PrintProgramError, pubkey::Pubkey,
+    account_info::AccountInfo, entrypoint::ProgramResult, program_error::PrintProgramError,
+    pubkey::Pubkey,
 };
 
-entrypoint!(process_instruction);
+solana_program::entrypoint!(process_instruction);
 fn process_instruction(
     program_id: &Pubkey,
     accounts: &[AccountInfo],