Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

rustfmt.toml for SPL #5729

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion account-compression/programs/noop/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare_id!("noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV");
use solana_program::entrypoint;

#[cfg(not(feature = "no-entrypoint"))]
entrypoint!(noop);
solana_program::entrypoint!(noop);

pub fn noop(
_program_id: &Pubkey,
Expand Down
2 changes: 1 addition & 1 deletion associated-token-account/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion binary-option/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{

use crate::processor::Processor;

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion binary-oracle-pair/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use solana_program::{
program_error::PrintProgramError, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions examples/rust/cross-program-invocation/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#![cfg(not(feature = "no-entrypoint"))]

use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
3 changes: 1 addition & 2 deletions examples/rust/custom-heap/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use solana_program::{
account_info::AccountInfo,
entrypoint,
entrypoint::{ProgramResult, HEAP_LENGTH, HEAP_START_ADDRESS},
pubkey::Pubkey,
};
Expand Down Expand Up @@ -44,7 +43,7 @@ unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
#[global_allocator]
static A: BumpAllocator = BumpAllocator;

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions examples/rust/logging/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#![cfg(not(feature = "no-entrypoint"))]

use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions examples/rust/sysvar/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#![cfg(not(feature = "no-entrypoint"))]

use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions examples/rust/transfer-lamports/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#![cfg(not(feature = "no-entrypoint"))]

use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions examples/rust/transfer-tokens/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#![cfg(not(feature = "no-entrypoint"))]

use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions feature-gate/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
use {
crate::processor,
solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey,
},
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion feature-proposal/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion governance/addin-mock/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use solana_program::{
program_error::PrintProgramError, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion governance/chat/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use solana_program::{
program_error::PrintProgramError, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion governance/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use solana_program::{
program_error::PrintProgramError, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion instruction-padding/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion libraries/math/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion memo/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions name-service/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ use {
crate::processor::Processor,
num_traits::FromPrimitive,
solana_program::{
account_info::AccountInfo, decode_error::DecodeError, entrypoint,
account_info::AccountInfo, decode_error::DecodeError,
entrypoint::ProgramResult, msg, program_error::PrintProgramError, pubkey::Pubkey,
},
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);

pub fn process_instruction(
program_id: &Pubkey,
Expand Down
2 changes: 1 addition & 1 deletion record/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion single-pool/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use {
},
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion stake-pool/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use {
},
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion stateless-asks/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{

use crate::processor::Processor;

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions token-collection/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
use {
crate::processor,
solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult,
account_info::AccountInfo, entrypoint::ProgramResult,
program_error::PrintProgramError, pubkey::Pubkey,
},
spl_token_group_interface::error::TokenGroupError,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion token-group/example/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use {
spl_token_group_interface::error::TokenGroupError,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions token-lending/flash_loan_receiver/src/entrypoint.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion token-lending/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use solana_program::{
program_error::PrintProgramError, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions token-lending/program/tests/helpers/flash_loan_receiver.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, msg, pubkey::Pubkey,
account_info::AccountInfo, entrypoint::ProgramResult, msg, pubkey::Pubkey,
};

use crate::helpers::flash_loan_receiver::FlashLoanReceiverError::InvalidInstruction;
Expand Down Expand Up @@ -29,7 +29,7 @@ pub enum FlashLoanReceiverInstruction {
},
}

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
pub fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
4 changes: 2 additions & 2 deletions token-metadata/example/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
use {
crate::processor,
solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult,
account_info::AccountInfo, entrypoint::ProgramResult,
program_error::PrintProgramError, pubkey::Pubkey,
},
spl_token_metadata_interface::error::TokenMetadataError,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion token-swap/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
program_error::PrintProgramError, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion token-upgrade/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion token-wrap/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion token/program-2022/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use {
},
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion token/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use solana_program::{
program_error::PrintProgramError, pubkey::Pubkey,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
2 changes: 1 addition & 1 deletion token/transfer-hook/example/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use {
spl_transfer_hook_interface::error::TransferHookError,
};

entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
Expand Down
Loading