This commit is contained in:
vms 2021-04-20 13:36:20 +03:00
parent e826e6cee9
commit cbd2cf7c4a

View File

@ -40,6 +40,9 @@ impl RecordSerGlueCodeGenerator for AstRecordItem {
let field_ident = field_ident(field, id);
let field_serialization = match &field.ty {
ParsedType::Boolean(_) => {
quote! { raw_record.push(*&#field_ident as _); }
}
ParsedType::Utf8Str(_) | ParsedType::Utf8String(_) => {
quote! {
let field_ident_ptr = #field_ident.as_ptr() as usize;