Skip to content

Commit e3798ce

Browse files
committed
Fix obsolete rule in ast_enum_of_structs
warning: 1st rule of macro `ast_enum_of_structs` is never used --> src/macros.rs:56:5 | 56 | / ( 57 | | $(#[$enum_attr:meta])* 58 | | $pub:ident $enum:ident $name:ident #$tag:ident $body:tt 59 | | $($remaining:tt)* 60 | | ) => { | |_____^ | = note: `#[warn(unused_macro_rules)]` on by default
1 parent 16315f5 commit e3798ce

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/macros.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ macro_rules! ast_enum {
5353
}
5454

5555
macro_rules! ast_enum_of_structs {
56-
(
57-
$(#[$enum_attr:meta])*
58-
$pub:ident $enum:ident $name:ident #$tag:ident $body:tt
59-
$($remaining:tt)*
60-
) => {
61-
ast_enum!($(#[$enum_attr])* $pub $enum $name #$tag $body);
62-
ast_enum_of_structs_impl!($pub $enum $name $body $($remaining)*);
63-
};
64-
6556
(
6657
$(#[$enum_attr:meta])*
6758
$pub:ident $enum:ident $name:ident $body:tt

0 commit comments

Comments
 (0)