Skip to content

Commit

Permalink
fix: correct unsafe bytemuck trait path
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBurbo committed Jun 19, 2024
1 parent f326b89 commit 2202362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/attribute/program/src/declare_program/mods/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ pub fn gen_accounts_mod(idl: &Idl) -> proc_macro2::TokenStream {
matches!(ty_def.serialization, IdlSerialization::BytemuckUnsafe)
.then(|| {
quote! {
unsafe impl anchor_lang::__private::Pod for #name {}
unsafe impl anchor_lang::__private::Zeroable for #name {}
unsafe impl anchor_lang::__private::bytemuck::Pod for #name {}
unsafe impl anchor_lang::__private::bytemuck::Zeroable for #name {}
}
})
.unwrap_or_default();
Expand Down

0 comments on commit 2202362

Please sign in to comment.