Skip to content

Commit db9f528

Browse files
addr_of_mut!(STATIC_MUT) is safe on nightly
stable doesn't know yet, so just allow the lint.
1 parent 02d1221 commit db9f528

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/dbghelp.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ macro_rules! dbghelp {
114114
})*
115115

116116
pub fn dbghelp(&self) -> *mut Dbghelp {
117-
unsafe {
118-
ptr::addr_of_mut!(DBGHELP)
119-
}
117+
#[allow(unused_unsafe)]
118+
unsafe { ptr::addr_of_mut!(DBGHELP) }
120119
}
121120
}
122121
)

0 commit comments

Comments
 (0)