Skip to content

Commit 2003770

Browse files
committed
Allow the macro to coexist with deny(unsafe_code)
1 parent c96788a commit 2003770

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ macro_rules! lazy_static {
9090
lazy_static!(@MAKE TY, $VIS, $(#[$attr])*, $N);
9191
impl ::std::ops::Deref for $N {
9292
type Target = $T;
93+
#[allow(unsafe_code)]
9394
fn deref<'a>(&'a self) -> &'a $T {
9495
unsafe {
9596
#[inline(always)]

0 commit comments

Comments
 (0)