Skip to content

Commit

Permalink
Fix obsolete rule in ast_enum_of_structs
Browse files Browse the repository at this point in the history
    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
  • Loading branch information
dtolnay committed May 13, 2022
1 parent 16315f5 commit e3798ce
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3798ce

Please sign in to comment.