Let the FlashRegion for region types be public

This commit is contained in:
Rasmus Melchior Jacobsen 2023-04-01 16:59:21 +02:00
parent 50b0fb1a37
commit 268e29b153

View file

@ -145,7 +145,7 @@ fn main() {
let region_type = format_ident!("{}", get_flash_region_type_name(region.name)); let region_type = format_ident!("{}", get_flash_region_type_name(region.name));
flash_regions.extend(quote! { flash_regions.extend(quote! {
pub struct #region_type(pub(crate) &'static crate::flash::FlashRegion); pub struct #region_type(pub &'static crate::flash::FlashRegion);
}); });
} }