Add visibility to impl_reprc

This commit is contained in:
hodasemi 2024-05-13 14:42:55 +02:00
parent 1312ecc17e
commit 803ff49027

View file

@ -3,7 +3,7 @@ macro_rules! impl_reprc {
(
$(#[$meta: meta])*
$v:vis struct $struct_name:ident {
$( $(#[$field_meta:meta])* $member:ident : $t:ty, )+
$( $(#[$field_meta:meta])* $vm:vis $member:ident : $t:ty, )+
}
) => {
#[repr(C)]
@ -12,7 +12,7 @@ macro_rules! impl_reprc {
$v struct $struct_name {
$(
$( #[$field_meta] )*
pub $member: $t,
$vm $member: $t,
)+
}
};