Skip to content

Commit

Permalink
addr_of_mut!(STATIC_MUT) is safe on nightly
Browse files Browse the repository at this point in the history
stable doesn't know yet, so just allow the lint.
  • Loading branch information
workingjubilee committed Jul 27, 2024
1 parent e1108bb commit ddcbd97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dbghelp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ macro_rules! dbghelp {
})*

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

0 comments on commit ddcbd97

Please sign in to comment.