Add visibility to impl_reprc
This commit is contained in:
parent
1312ecc17e
commit
803ff49027
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ macro_rules! impl_reprc {
|
||||||
(
|
(
|
||||||
$(#[$meta: meta])*
|
$(#[$meta: meta])*
|
||||||
$v:vis struct $struct_name:ident {
|
$v:vis struct $struct_name:ident {
|
||||||
$( $(#[$field_meta:meta])* $member:ident : $t:ty, )+
|
$( $(#[$field_meta:meta])* $vm:vis $member:ident : $t:ty, )+
|
||||||
}
|
}
|
||||||
) => {
|
) => {
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
@ -12,7 +12,7 @@ macro_rules! impl_reprc {
|
||||||
$v struct $struct_name {
|
$v struct $struct_name {
|
||||||
$(
|
$(
|
||||||
$( #[$field_meta] )*
|
$( #[$field_meta] )*
|
||||||
pub $member: $t,
|
$vm $member: $t,
|
||||||
)+
|
)+
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue