Skip to content

Commit 24813db

Browse files
committed
Apply missing_unsafe_on_extern
1 parent 1213fc6 commit 24813db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/home/src/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn home_dir_crt() -> Option<PathBuf> {
4646
None
4747
}
4848

49-
extern "C" {
49+
unsafe extern "C" {
5050
fn wcslen(buf: *const u16) -> usize;
5151
}
5252

src/cargo/util/cpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ mod imp {
108108
const CPU_STATE_NICE: usize = 3;
109109
const CPU_STATE_MAX: usize = 4;
110110

111-
extern "C" {
111+
unsafe extern "C" {
112112
static mut mach_task_self_: mach_port_t;
113113

114114
fn mach_host_self() -> mach_port_t;

0 commit comments

Comments
 (0)