clippy
This commit is contained in:
committed by
mergify[bot]
parent
b379004c3b
commit
f59d4f29d9
@@ -189,9 +189,9 @@ pub unsafe fn deserialize<'a>(input: *mut u8) -> (&'a Pubkey, Vec<AccountInfo<'a
|
||||
offset += size_of::<u64>();
|
||||
|
||||
accounts.push(AccountInfo {
|
||||
key,
|
||||
is_signer,
|
||||
is_writable,
|
||||
key,
|
||||
lamports,
|
||||
data,
|
||||
owner,
|
||||
|
@@ -105,9 +105,9 @@ pub unsafe fn deserialize<'a>(input: *mut u8) -> (&'a Pubkey, Vec<AccountInfo<'a
|
||||
offset += size_of::<u64>();
|
||||
|
||||
accounts.push(AccountInfo {
|
||||
key,
|
||||
is_signer,
|
||||
is_writable,
|
||||
key,
|
||||
lamports,
|
||||
data,
|
||||
owner,
|
||||
|
@@ -243,8 +243,8 @@ impl Instruction {
|
||||
let data = serialize(data).unwrap();
|
||||
Self {
|
||||
program_id,
|
||||
data,
|
||||
accounts,
|
||||
data,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,16 +256,16 @@ impl Instruction {
|
||||
let data = data.try_to_vec().unwrap();
|
||||
Self {
|
||||
program_id,
|
||||
data,
|
||||
accounts,
|
||||
data,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_with_bytes(program_id: Pubkey, data: &[u8], accounts: Vec<AccountMeta>) -> Self {
|
||||
Self {
|
||||
program_id,
|
||||
data: data.to_vec(),
|
||||
accounts,
|
||||
data: data.to_vec(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -486,8 +486,8 @@ impl Message {
|
||||
let data = read_slice(&mut current, &data, data_len as usize)?;
|
||||
Ok(Instruction {
|
||||
program_id,
|
||||
data,
|
||||
accounts,
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user