Skip to content

Commit

Permalink
Fix obsolete rule in check_keyword_matches
Browse files Browse the repository at this point in the history
    warning: 1st rule of macro `check_keyword_matches` is never used
       --> src/macros.rs:176:5
        |
    176 |     (struct struct) => {};
        |     ^^^^^^^^^^^^^^^
  • Loading branch information
dtolnay committed May 13, 2022
1 parent 189c60c commit 16315f5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ macro_rules! strip_attrs_pub {
}

macro_rules! check_keyword_matches {
(struct struct) => {};
(enum enum) => {};
(pub pub) => {};
}

0 comments on commit 16315f5

Please sign in to comment.