Skip to content

Commit

Permalink
make partial struct public inside SerializeRow derived impl
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nrxus committed Dec 9, 2024
1 parent dc2a19e commit c03bf5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scylla-macros/src/serialize/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit c03bf5b

Please sign in to comment.