Fix compat.rs for `cfg(miri)`

This commit is contained in:
Chris Denton 2022-07-31 14:45:26 +01:00
parent 76822a2878
commit 7f3d11e1d8
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ macro_rules! compat_fn_optional {
pub fn option() -> Option<F> {
let mut func = NonNull::new(PTR.load(Ordering::Relaxed));
if func.is_none() {
Module::new($module).map(preload);
unsafe { Module::new($module).map(preload) };
func = NonNull::new(PTR.load(Ordering::Relaxed));
}
unsafe {