Skip to content

Commit 8026a1a

Browse files
committed
We need an additional dead_code disable, since Rust has gotten better about warnings recently
1 parent a904c51 commit 8026a1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lazy_static.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,15 @@ macro_rules! lazy_static {
108108
#[allow(non_camel_case_types)]
109109
#[allow(dead_code)]
110110
pub struct $N {__private_field: ()}
111+
#[allow(dead_code)]
111112
pub static $N: $N = $N {__private_field: ()};
112113
};
113114
(MAKE TY PRIV $N:ident) => {
114115
#[allow(missing_copy_implementations)]
115116
#[allow(non_camel_case_types)]
116117
#[allow(dead_code)]
117118
struct $N {__private_field: ()}
119+
#[allow(dead_code)]
118120
static $N: $N = $N {__private_field: ()};
119121
};
120122
() => ()

0 commit comments

Comments
 (0)