impl_opaque_keys should allow doc comments (#6255)

This commit is contained in:
Demi Obenour authored and GitHub committed 2020-06-04 18:38:02 +02:00
1 parent 8f5a52fe1a
commit 7f1f811cf9
1 file changed
+2
@@ -1157,6 +1157,7 @@ macro_rules! impl_opaque_keys {
$( #[ $attr:meta ] )*
pub struct $name:ident {
$(
$( #[ $inner_attr:meta ] )*
pub $field:ident: $type:ty,
)*
}
@@ -1171,6 +1172,7 @@ macro_rules! impl_opaque_keys {
#[cfg_attr(feature = "std", derive($crate::serde::Serialize, $crate::serde::Deserialize))]
pub struct $name {
$(
$( #[ $inner_attr ] )*
pub $field: <$type as $crate::BoundToRuntimeAppPublic>::Public,
)*
}