Skip to content

Commit

Permalink
ptr::addr_of_mut!(STATIC_MUT) is safe
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jul 27, 2024
1 parent e1108bb commit 6c6b1cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dbghelp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ macro_rules! dbghelp {
})*

pub fn dbghelp(&self) -> *mut Dbghelp {
unsafe {
ptr::addr_of_mut!(DBGHELP)
}
ptr::addr_of_mut!(DBGHELP)
}
}
)
Expand Down

0 comments on commit 6c6b1cb

Please sign in to comment.