Skip to content

Commit ffc4bd5

Browse files
authored
Fix module imports for export (#394)
1 parent 1c969da commit ffc4bd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlua_derive/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ pub fn lua_module(attr: TokenStream, item: TokenStream) -> TokenStream {
5858
};
5959

6060
let wrapped = quote! {
61-
::mlua::require_module_feature!();
61+
mlua::require_module_feature!();
6262

6363
#func
6464

6565
#[no_mangle]
66-
unsafe extern "C-unwind" fn #ext_entrypoint_name(state: *mut ::mlua::lua_State) -> ::std::os::raw::c_int {
67-
let lua = ::mlua::Lua::init_from_ptr(state);
66+
unsafe extern "C-unwind" fn #ext_entrypoint_name(state: *mut mlua::lua_State) -> ::std::os::raw::c_int {
67+
let lua = mlua::Lua::init_from_ptr(state);
6868
#skip_memory_check
6969
lua.entrypoint1(state, #func_name)
7070
}
@@ -95,7 +95,7 @@ pub fn chunk(input: TokenStream) -> TokenStream {
9595
});
9696

9797
let wrapped_code = quote! {{
98-
use ::mlua::{AsChunk, ChunkMode, Lua, Result, Table};
98+
use mlua::{AsChunk, ChunkMode, Lua, Result, Table};
9999
use ::std::borrow::Cow;
100100
use ::std::cell::Cell;
101101
use ::std::io::Result as IoResult;

0 commit comments

Comments
 (0)