Skip to content

Commit accffbf

Browse files
committed
Fix unused macro rule in no-default-features mode
warning: 1st rule of macro `ast_struct` is never used --> src/macros.rs:2:5 | 2 | / ( 3 | | [$($attrs_pub:tt)*] 4 | | struct $name:ident #full $($rest:tt)* 5 | | ) => { | |_____^ | = note: `#[warn(unused_macro_rules)]` on by default
1 parent e3798ce commit accffbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/macros.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[allow(unknown_lints)]
2+
#[cfg_attr(not(any(feature = "full", feature = "derive")), allow(unused_macro_rules))]
13
macro_rules! ast_struct {
24
(
35
[$($attrs_pub:tt)*]

0 commit comments

Comments
 (0)