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

@ -4,8 +4,8 @@
extern crate solana_program;
use solana_program::{
account_info::AccountInfo, bpf_loader, entrypoint_deprecated,
entrypoint_deprecated::ProgramResult, log::*, msg, pubkey::Pubkey,
account_info::AccountInfo, bpf_loader, entrypoint_deprecated::ProgramResult, log::*, msg,
pubkey::Pubkey,
};
#[derive(Debug, PartialEq)]
@ -26,7 +26,7 @@ fn custom_panic(info: &core::panic::PanicInfo<'_>) {
msg!(&format!("{}", info));
}
entrypoint_deprecated!(process_instruction);
solana_program::entrypoint_deprecated!(process_instruction);
#[allow(clippy::unnecessary_wraps)]
fn process_instruction(
program_id: &Pubkey,