Skip to content

Commit

Permalink
Resolve unknown doc(shown)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroicKatora committed Apr 12, 2024
1 parent 1e0dc06 commit 679a8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethox/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ macro_rules! enum_with_unknown {
enum_with_unknown! {
$( #[$enum_attr] )*
pub doc enum $name($ty) {
$($(#[$val_attr])* #[doc(shown)] $variant = $value ),+
$($(#[$val_attr])* $variant = $value ),+
}
}
};
(
$( #[$enum_attr:meta] )*
pub doc enum $name:ident($ty:ty) {
$(
$( #[$variant_attr:meta] )+
$( #[$variant_attr:meta] )*
$variant:ident = $value:expr $(,)*
),+
}
Expand Down

0 comments on commit 679a8d8

Please sign in to comment.