fix result

This commit is contained in:
Armani Ferrante 2022-02-21 12:10:22 -05:00
parent 13bc3c88f9
commit fe252b0148
No known key found for this signature in database
GPG Key ID: D597A80BCF8E12B7
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ pub fn account(
// It's expected on-chain programs deserialize via zero-copy.
#[automatically_derived]
impl #impl_gen anchor_lang::AccountDeserialize for #account_name #type_gen #where_clause {
fn try_deserialize(buf: &mut &[u8]) -> std::result::Result<Self> {
fn try_deserialize(buf: &mut &[u8]) -> anchor_lang::Result<Self> {
// Header is always 8 bytes.
if buf.len() < anchor_lang::accounts::header::HEADER_LEN {
return Err(anchor_lang::error::ErrorCode::AccountDiscriminatorNotFound.into());