Add script for running nightly rustfmt on all workspaces (#23244)
* Add script for running nightly rustfmt on all workspaces * invalidate ci cache
This commit is contained in:
@ -5,7 +5,6 @@ extern crate solana_program;
|
||||
use solana_program::sysvar::recent_blockhashes::RecentBlockhashes;
|
||||
use solana_program::{
|
||||
account_info::AccountInfo,
|
||||
entrypoint,
|
||||
entrypoint::ProgramResult,
|
||||
instruction::{AccountMeta, Instruction},
|
||||
msg,
|
||||
@ -17,7 +16,7 @@ use solana_program::{
|
||||
},
|
||||
};
|
||||
|
||||
entrypoint!(process_instruction);
|
||||
solana_program::entrypoint!(process_instruction);
|
||||
#[allow(clippy::unnecessary_wraps)]
|
||||
pub fn process_instruction(
|
||||
program_id: &Pubkey,
|
||||
|
@ -1,14 +1,16 @@
|
||||
use solana_bpf_rust_sysvar::process_instruction;
|
||||
use solana_program_test::*;
|
||||
use solana_sdk::{
|
||||
instruction::{AccountMeta, Instruction},
|
||||
pubkey::Pubkey,
|
||||
signature::Signer,
|
||||
sysvar::{
|
||||
clock, epoch_schedule, instructions, recent_blockhashes, rent, slot_hashes, slot_history,
|
||||
stake_history,
|
||||
use {
|
||||
solana_bpf_rust_sysvar::process_instruction,
|
||||
solana_program_test::*,
|
||||
solana_sdk::{
|
||||
instruction::{AccountMeta, Instruction},
|
||||
pubkey::Pubkey,
|
||||
signature::Signer,
|
||||
sysvar::{
|
||||
clock, epoch_schedule, instructions, recent_blockhashes, rent, slot_hashes,
|
||||
slot_history, stake_history,
|
||||
},
|
||||
transaction::Transaction,
|
||||
},
|
||||
transaction::Transaction,
|
||||
};
|
||||
|
||||
#[tokio::test]
|
||||
|
Reference in New Issue
Block a user