Apply missing_unsafe_on_extern

This commit is contained in:
Eric Huss 2025-07-05 19:27:29 -07:00
parent 1213fc652b
commit 24813db9da
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ fn home_dir_crt() -> Option<PathBuf> {
None
}
extern "C" {
unsafe extern "C" {
fn wcslen(buf: *const u16) -> usize;
}

View File

@ -108,7 +108,7 @@ mod imp {
const CPU_STATE_NICE: usize = 3;
const CPU_STATE_MAX: usize = 4;
extern "C" {
unsafe extern "C" {
static mut mach_task_self_: mach_port_t;
fn mach_host_self() -> mach_port_t;