File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
lexical-write-integer/src Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ macro_rules! json_data {
89
89
}
90
90
91
91
/// Generate an array of values as static data
92
+ #[ allow( unused_macro_rules) ]
92
93
macro_rules! static_data {
93
94
( $( $fn: ident $cb: ident $f1: ident $t: tt ; ) * ) => ( $(
94
95
fn $fn( ) -> & ' static [ $t] {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ macro_rules! index_unchecked {
16
16
17
17
/// Index a buffer and get a mutable reference, without bounds checking.
18
18
#[ cfg( not( feature = "safe" ) ) ]
19
+ #[ allow( unused_macro_rules) ]
19
20
macro_rules! index_unchecked_mut {
20
21
( $x: ident[ $i: expr] ) => {
21
22
* $x. get_unchecked_mut( $i)
@@ -32,6 +33,7 @@ macro_rules! index_unchecked {
32
33
33
34
/// Index a buffer and get a mutable reference, with bounds checking.
34
35
#[ cfg( feature = "safe" ) ]
36
+ #[ allow( unused_macro_rules) ]
35
37
macro_rules! index_unchecked_mut {
36
38
( $x: ident[ $i: expr] ) => {
37
39
$x[ $i]
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ macro_rules! index_unchecked {
22
22
// The newer version of the lint is `unused_macro_rules`, but this isn't
23
23
// supported until nightly-2022-05-12.
24
24
#[ cfg( not( feature = "safe" ) ) ]
25
+ #[ allow( unused_macro_rules) ]
25
26
macro_rules! index_unchecked_mut {
26
27
( $x: ident[ $i: expr] ) => {
27
28
* $x. get_unchecked_mut( $i)
@@ -53,6 +54,7 @@ macro_rules! index_unchecked {
53
54
// The newer version of the lint is `unused_macro_rules`, but this isn't
54
55
// supported until nightly-2022-05-12.
55
56
#[ cfg( feature = "safe" ) ]
57
+ #[ allow( unused_macro_rules) ]
56
58
macro_rules! index_unchecked_mut {
57
59
( $x: ident[ $i: expr] ) => {
58
60
$x[ $i]
You can’t perform that action at this time.
0 commit comments