Give inline accumulator type the same visibility as the target

This commit is contained in:
Dirkjan Ochtman 2023-02-28 16:51:20 +01:00
parent f51e6ae063
commit 5058699765
1 changed files with 2 additions and 1 deletions

View File

@ -479,6 +479,7 @@ fn deserialize_inline_struct(
let (xml_impl_generics, xml_ty_generics, _) = generics.split_for_impl();
let (_, ty_generics, where_clause) = input.generics.split_for_impl();
let visibility = &input.vis;
quote!(
impl #xml_impl_generics FromXml<'xml> for #ident #ty_generics #where_clause {
@ -504,7 +505,7 @@ fn deserialize_inline_struct(
const KIND: ::instant_xml::Kind = ::instant_xml::Kind::Element;
}
struct #accumulator #xml_ty_generics #where_clause {
#visibility struct #accumulator #xml_ty_generics #where_clause {
#acc_field_defs
}