mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Apply missing_unsafe_on_extern
This commit is contained in:
parent
1213fc652b
commit
24813db9da
@ -46,7 +46,7 @@ fn home_dir_crt() -> Option<PathBuf> {
|
||||
None
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
unsafe extern "C" {
|
||||
fn wcslen(buf: *const u16) -> usize;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user