Skip to content

Commit 76f05f4

Browse files
committed
Fix formatting
1 parent 2b6b572 commit 76f05f4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

programs/system/src/instructions/assign.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ impl Assign<'_, '_> {
2727
#[inline(always)]
2828
pub fn invoke_signed(&self, signers: &[Signer]) -> ProgramResult {
2929
// account metadata
30-
let account_metas: [AccountMeta; 1] = [AccountMeta::writable_signer(self.account.address())];
30+
let account_metas: [AccountMeta; 1] =
31+
[AccountMeta::writable_signer(self.account.address())];
3132

3233
// instruction data
3334
// - [0..4 ]: instruction discriminator

programs/system/src/instructions/create_account_with_seed.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ impl<'a, 'b, 'c> CreateAccountWithSeed<'a, 'b, 'c> {
9191
// - [.. +32]: owner address
9292
let mut instruction_data = [0; 120];
9393
instruction_data[0] = 3;
94-
instruction_data[4..36].copy_from_slice(self.base.unwrap_or(self.from).address().as_array());
94+
instruction_data[4..36]
95+
.copy_from_slice(self.base.unwrap_or(self.from).address().as_array());
9596
instruction_data[36..44].copy_from_slice(&u64::to_le_bytes(self.seed.len() as u64));
9697

9798
let offset = 44 + self.seed.len();

0 commit comments

Comments
 (0)