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:
Justin Starry
2022-02-22 11:59:06 +08:00
committed by GitHub
parent 72c68695b5
commit c97f34a0fd
46 changed files with 327 additions and 296 deletions

View File

@ -1,15 +1,16 @@
//! Test mem functions
use crate::{run_mem_tests, MemOps};
use solana_program::{
account_info::AccountInfo,
entrypoint,
entrypoint::ProgramResult,
program_memory::{sol_memcmp, sol_memcpy, sol_memmove, sol_memset},
pubkey::Pubkey,
use {
crate::{run_mem_tests, MemOps},
solana_program::{
account_info::AccountInfo,
entrypoint::ProgramResult,
program_memory::{sol_memcmp, sol_memcpy, sol_memmove, sol_memset},
pubkey::Pubkey,
},
};
entrypoint!(process_instruction);
solana_program::entrypoint!(process_instruction);
#[allow(clippy::unnecessary_wraps)]
pub fn process_instruction(
_program_id: &Pubkey,

View File

@ -1,7 +1,9 @@
use solana_bpf_rust_mem::entrypoint::process_instruction;
use solana_program_test::*;
use solana_sdk::{
instruction::Instruction, pubkey::Pubkey, signature::Signer, transaction::Transaction,
use {
solana_bpf_rust_mem::entrypoint::process_instruction,
solana_program_test::*,
solana_sdk::{
instruction::Instruction, pubkey::Pubkey, signature::Signer, transaction::Transaction,
},
};
#[tokio::test]