Skip to content

Commit 7f3d11e

Browse files
committed
Fix compat.rs for cfg(miri)
1 parent 76822a2 commit 7f3d11e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/compat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ macro_rules! compat_fn_optional {
251251
pub fn option() -> Option<F> {
252252
let mut func = NonNull::new(PTR.load(Ordering::Relaxed));
253253
if func.is_none() {
254-
Module::new($module).map(preload);
254+
unsafe { Module::new($module).map(preload) };
255255
func = NonNull::new(PTR.load(Ordering::Relaxed));
256256
}
257257
unsafe {

0 commit comments

Comments
 (0)