summaryrefslogtreecommitdiff
path: root/examples/module/src/lib.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2020-12-29 22:08:53 +0000
committerAlex Orlenko <zxteam@protonmail.com>2020-12-29 22:26:15 +0000
commitbedd430eb58a998f44fba213b71c8a597efb714a (patch)
tree1a03d260b198a2651072d9fcb52928f48f54b548 /examples/module/src/lib.rs
parentafc41ab23c2fa6ef340ca90da4065df89f3949e6 (diff)
downloadmlua-bedd430eb58a998f44fba213b71c8a597efb714a.zip
Re-export mlua_derive
Diffstat (limited to 'examples/module/src/lib.rs')
-rw-r--r--examples/module/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/module/src/lib.rs b/examples/module/src/lib.rs
index 24056a1..38cc0fd 100644
--- a/examples/module/src/lib.rs
+++ b/examples/module/src/lib.rs
@@ -8,7 +8,7 @@ fn used_memory(lua: &Lua, _: ()) -> LuaResult<usize> {
Ok(lua.used_memory())
}
-#[mlua_derive::lua_module]
+#[mlua::lua_module]
fn rust_module(lua: &Lua) -> LuaResult<LuaTable> {
let exports = lua.create_table()?;
exports.set("sum", lua.create_function(sum)?)?;