Skip to content

Commit 6c6b1cb

Browse files
ptr::addr_of_mut!(STATIC_MUT) is safe
1 parent e1108bb commit 6c6b1cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/dbghelp.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ macro_rules! dbghelp {
114114
})*
115115

116116
pub fn dbghelp(&self) -> *mut Dbghelp {
117-
unsafe {
118-
ptr::addr_of_mut!(DBGHELP)
119-
}
117+
ptr::addr_of_mut!(DBGHELP)
120118
}
121119
}
122120
)

0 commit comments

Comments
 (0)