From c03bf5bc7b21d4fbdd99213fa15d85eb5893b2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Medina?= Date: Mon, 9 Dec 2024 11:01:04 -0800 Subject: [PATCH] make partial struct public inside SerializeRow derived impl this was causing a compile time error when trying to use it in my own project. Usure why there wasn't a compile time error in the test --- scylla-macros/src/serialize/row.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scylla-macros/src/serialize/row.rs b/scylla-macros/src/serialize/row.rs index efd75c0805..24c7368683 100644 --- a/scylla-macros/src/serialize/row.rs +++ b/scylla-macros/src/serialize/row.rs @@ -270,7 +270,7 @@ impl Generator for ColumnSortingGenerator<'_> { let all_names = self.ctx.fields.iter().map(|f| f.column_name()); let partial_struct: syn::ItemStruct = parse_quote! { - struct #partial_struct_name #partial_generics { + pub struct #partial_struct_name #partial_generics { #(#unflattened_fields: &#partial_lt #unflattened_tys,)* #(#flattened_fields: <#flattened_tys as #crate_path::ser::row::SerializeRowByName>::Partial<#partial_lt>,)* missing: ::std::collections::HashSet<&'static str>,