diff options
| author | Eric Huss <eric@huss.org> | 2025-02-09 09:12:30 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2025-02-09 09:12:30 -0800 |
| commit | 64e9ca74a8ffaedcae2490fe5245ab8c941efe30 (patch) | |
| tree | 495b0b277cbd7f263a97fc72eaf98f0e33b0f49f /library/stdarch/crates/std_detect/src/detect/cache.rs | |
| parent | fe2acd41842b0e7c08aa1479b60787d52e62cf75 (diff) | |
| download | rust-64e9ca74a8ffaedcae2490fe5245ab8c941efe30.tar.gz rust-64e9ca74a8ffaedcae2490fe5245ab8c941efe30.zip | |
Apply missing_unsafe_on_extern
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect/cache.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/cache.rs b/library/stdarch/crates/std_detect/src/detect/cache.rs index cee07b0ec7e..3056c28a806 100644 --- a/library/stdarch/crates/std_detect/src/detect/cache.rs +++ b/library/stdarch/crates/std_detect/src/detect/cache.rs @@ -140,7 +140,7 @@ cfg_if::cfg_if! { if #[cfg(windows)] { use alloc::vec; #[link(name = "kernel32")] - extern "system" { + unsafe extern "system" { fn GetEnvironmentVariableA(name: *const u8, buffer: *mut u8, size: u32) -> u32; } let len = unsafe { GetEnvironmentVariableA(RUST_STD_DETECT_UNSTABLE.as_ptr().cast::<u8>(), core::ptr::null_mut(), 0) }; |
