From 4184a7b1174baecea1845a36377ef8556317b046 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 f4cdfea95..bdb47ea5f 100644 --- a/scylla-macros/src/serialize/row.rs +++ b/scylla-macros/src/serialize/row.rs @@ -271,7 +271,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>,