Skip to content

Commit ca956e1

Browse files
committed
Add unused_macros to prevent warnings
1 parent 943b116 commit ca956e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/macros.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ macro_rules! __cfg_if_apply {
3434
}
3535
}
3636

37+
#[allow(unused_macros)]
3738
macro_rules! s {
3839
($($(#[$attr:meta])* pub $t:ident $i:ident { $($field:tt)* })*) => ($(
3940
__item! {
@@ -49,6 +50,7 @@ macro_rules! s {
4950
)*)
5051
}
5152

53+
#[allow(unused_macros)]
5254
macro_rules! s_no_extra_traits {
5355
($($(#[$attr:meta])* pub $t:ident $i:ident { $($field:tt)* })*) => ($(
5456
__item! {
@@ -82,6 +84,7 @@ macro_rules! f {
8284
)*)
8385
}
8486

87+
#[allow(unused_macros)]
8588
macro_rules! __item {
8689
($i:item) => {
8790
$i

0 commit comments

Comments
 (0)