We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1213fc6 commit 24813dbCopy full SHA for 24813db
crates/home/src/windows.rs
@@ -46,7 +46,7 @@ fn home_dir_crt() -> Option<PathBuf> {
46
None
47
}
48
49
-extern "C" {
+unsafe extern "C" {
50
fn wcslen(buf: *const u16) -> usize;
51
52
src/cargo/util/cpu.rs
@@ -108,7 +108,7 @@ mod imp {
108
const CPU_STATE_NICE: usize = 3;
109
const CPU_STATE_MAX: usize = 4;
110
111
- extern "C" {
+ unsafe extern "C" {
112
static mut mach_task_self_: mach_port_t;
113
114
fn mach_host_self() -> mach_port_t;
0 commit comments