Skip to content

Commit efa4c9f

Browse files
committed
Ignore unused_macro_rules warning in test macros
warning: 1st rule of macro `json_str` is never used --> tests/macros/mod.rs:2:5 | 2 | ([]) => { | ^^^^ | = note: `#[warn(unused_macro_rules)]` on by default warning: 3rd rule of macro `json_str` is never used --> tests/macros/mod.rs:11:5 | 11 | ({}) => { | ^^^^
1 parent 2683b1a commit efa4c9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/macros/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused_macro_rules)]
2+
13
macro_rules! json_str {
24
([]) => {
35
"[]"

0 commit comments

Comments
 (0)