Skip to content

Commit d4ca674

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/win_bindings.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
non_snake_case,
44
non_upper_case_globals,
55
non_camel_case_types,
6-
clippy::upper_case_acronyms
6+
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)