Adjusting the attribute location in c_structs.

This commit is contained in:
Myrddin Dundragon 2019-06-25 03:17:05 -04:00
parent 6cb2888281
commit f0b6e71591

View File

@ -5,16 +5,14 @@ macro_rules! c_struct
{ {
$cname: ident $cname: ident
{ {
$(#[$attr: meta])* $($(#[$attr: meta])* $name: ident: $type: ty);*;
$($name: ident: $type: ty);*;
} }
} => } =>
{ {
#[repr(C)] #[repr(C)]
pub struct $cname pub struct $cname
{ {
$(#[$attr])* $($(#[$attr])* pub $name: $type),+,
$(pub $name: $type),+,
} }
}; };
} }