From db9f52851bb159cd89801f0e0f8bedb51c7cc14b Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Sat, 27 Jul 2024 15:09:34 -0700 Subject: [PATCH] `addr_of_mut!(STATIC_MUT)` is safe on nightly stable doesn't know yet, so just allow the lint. --- src/dbghelp.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dbghelp.rs b/src/dbghelp.rs index 9f94f214..82b81e1d 100644 --- a/src/dbghelp.rs +++ b/src/dbghelp.rs @@ -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) } } } )