Skip to content

Commit 59ad6a1

Browse files
committed
Extern blocks must be unsafe
1 parent 2c354e8 commit 59ad6a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/win_bindings.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
non_upper_case_globals,
55
non_camel_case_types,
66
clippy::upper_case_acronyms
7+
unsafe_code,
78
)]
89
#[link(name = "ntdll", kind = "raw-dylib")]
9-
extern "system" {
10+
unsafe extern "system" {
1011
#[link_name = "NtClose"]
1112
pub fn nt_close(handle: Handle) -> Ntstatus;
1213
#[link_name = "NtOpenProcess"]

0 commit comments

Comments
 (0)