Skip to content

Commit

Permalink
Fix unused_macros warning on ast_enum when features are disabled
Browse files Browse the repository at this point in the history
    warning: unused macro definition: `ast_enum`
      --> src/macros.rs:40:14
       |
    40 | macro_rules! ast_enum {
       |              ^^^^^^^^
       |
       = note: `#[warn(unused_macros)]` on by default
  • Loading branch information
dtolnay committed Dec 31, 2023
1 parent 16364d9 commit a193361
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ macro_rules! ast_struct {
};
}

#[cfg(any(feature = "full", features = "derive"))]
macro_rules! ast_enum {
(
$(#[$enum_attr:meta])*
Expand Down

0 comments on commit a193361

Please sign in to comment.