Skip to content

Commit 4b85a73

Browse files
committed
Declare extern C block as unsafe (testcrate)
1 parent bdcb159 commit 4b85a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testcrate/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct lua_CompileOptions {
2121
disabledBuiltins: *const *const c_char,
2222
}
2323

24-
extern "C" {
24+
unsafe extern "C" {
2525
pub fn free(ptr: *mut c_void);
2626

2727
pub fn luaL_newstate() -> *mut c_void;
@@ -65,7 +65,7 @@ extern "C" {
6565
}
6666

6767
#[cfg(not(target_os = "emscripten"))]
68-
extern "C" {
68+
unsafe extern "C" {
6969
pub fn luau_codegen_supported() -> c_int;
7070
pub fn luau_codegen_create(state: *mut c_void);
7171
pub fn luau_codegen_compile(state: *mut c_void, idx: c_int);

0 commit comments

Comments
 (0)