Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
someguynamedjosh committed Jun 14, 2023
1 parent 3063769 commit adb5763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ouroboros_macro/src/generate/struc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn create_actual_struct_def(info: &StructInfo) -> Result<TokenStream, Error>
let internal_ident = &info.internal_ident;
Ok(quote! {
#visibility struct #ident <#generic_params> #generic_where {
actual_data: [u8; ::core::mem::size_of::<#internal_ident<#(#generic_args),*>>()],
actual_data: ::core::mem::MaybeUninit<[u8; ::core::mem::size_of::<#internal_ident<#(#generic_args),*>>()]>,
_alignment: [#internal_ident<#(#generic_args),*>; 0],
#(#fields),*
}
Expand Down

0 comments on commit adb5763

Please sign in to comment.