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
This commit is contained in:
David Tolnay 2022-05-12 21:48:43 -07:00
parent 16315f531f
commit e3798ce02c
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -53,15 +53,6 @@ macro_rules! ast_enum {
}
macro_rules! ast_enum_of_structs {
(
$(#[$enum_attr:meta])*
$pub:ident $enum:ident $name:ident #$tag:ident $body:tt
$($remaining:tt)*
) => {
ast_enum!($(#[$enum_attr])* $pub $enum $name #$tag $body);
ast_enum_of_structs_impl!($pub $enum $name $body $($remaining)*);
};
(
$(#[$enum_attr:meta])*
$pub:ident $enum:ident $name:ident $body:tt