Skip to content

Commit 17d0edd

Browse files
committed
Fix formatting
1 parent 0f13c6e commit 17d0edd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+46
-83
lines changed

programs/system/src/instructions/allocate_with_seed.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use pinocchio::{
22
account_info::AccountInfo,
3-
Address,
43
instruction::{AccountMeta, Instruction, Signer},
54
program::invoke_signed,
6-
ProgramResult,
5+
Address, ProgramResult,
76
};
87

98
/// Allocate space for and assign an account at an address derived

programs/system/src/instructions/assign.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use pinocchio::{
22
account_info::AccountInfo,
3-
Address,
43
instruction::{AccountMeta, Instruction, Signer},
54
program::invoke_signed,
6-
ProgramResult,
5+
Address, ProgramResult,
76
};
87

98
/// Assign account to a program

programs/system/src/instructions/assign_with_seed.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use pinocchio::{
22
account_info::AccountInfo,
3-
Address,
43
instruction::{AccountMeta, Instruction, Signer},
54
program::invoke_signed,
6-
ProgramResult,
5+
Address, ProgramResult,
76
};
87

98
/// Assign account to a program based on a seed.

programs/system/src/instructions/authorize_nonce_account.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use pinocchio::{
22
account_info::AccountInfo,
3-
Address,
43
instruction::{AccountMeta, Instruction, Signer},
54
program::invoke_signed,
6-
ProgramResult,
5+
Address, ProgramResult,
76
};
87

98
/// Change the entity authorized to execute nonce instructions on the account.

programs/system/src/instructions/create_account.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
use pinocchio::{
22
account_info::AccountInfo,
3-
Address,
43
error::ProgramError,
54
instruction::{AccountMeta, Instruction, Signer},
65
program::invoke_signed,
76
sysvars::rent::Rent,
8-
ProgramResult,
7+
Address, ProgramResult,
98
};
109

1110
/// Create a new account.

programs/system/src/instructions/create_account_with_seed.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
use pinocchio::{
22
account_info::AccountInfo,
3-
Address,
43
error::ProgramError,
54
instruction::{AccountMeta, Instruction, Signer},
65
program::invoke_signed,
76
sysvars::rent::Rent,
8-
ProgramResult,
7+
Address, ProgramResult,
98
};
109

1110
/// Create a new account at an address derived from a base address and a seed.

programs/system/src/instructions/initialize_nonce_account.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use pinocchio::{
22
account_info::AccountInfo,
3-
Address,
43
cpi::invoke,
54
instruction::{AccountMeta, Instruction},
6-
ProgramResult,
5+
Address, ProgramResult,
76
};
87

98
/// Drive state of Uninitialized nonce account to Initialized, setting the nonce value.

programs/system/src/instructions/transfer_with_seed.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use pinocchio::{
22
account_info::AccountInfo,
3-
Address,
43
instruction::{AccountMeta, Instruction, Signer},
54
program::invoke_signed,
6-
ProgramResult,
5+
Address, ProgramResult,
76
};
87

98
/// Transfer lamports from a derived address.

programs/token-2022/src/instructions/approve.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ use core::slice::from_raw_parts;
22

33
use pinocchio::{
44
account_info::AccountInfo,
5-
Address,
65
instruction::{AccountMeta, Instruction, Signer},
76
program::invoke_signed,
8-
ProgramResult,
7+
Address, ProgramResult,
98
};
109

1110
use crate::{write_bytes, UNINIT_BYTE};

programs/token-2022/src/instructions/approve_checked.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ use core::slice::from_raw_parts;
22

33
use pinocchio::{
44
account_info::AccountInfo,
5-
Address,
65
instruction::{AccountMeta, Instruction, Signer},
76
program::invoke_signed,
8-
ProgramResult,
7+
Address, ProgramResult,
98
};
109

1110
use crate::{write_bytes, UNINIT_BYTE};

0 commit comments

Comments
 (0)