Update src/lune/builtins/luau.rs

Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
AsynchronousMatrix 2023-08-10 14:00:35 +01:00 committed by GitHub
parent c2a15729a0
commit 1eab6586e2
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,10 +11,10 @@ pub fn create(lua: &'static Lua) -> LuaResult<LuaTable> {
.build_readonly()
}
fn compile_source<'a>(
lua: &'static Lua,
(source, options): (LuaString<'a>, Option<LuaTable<'a>>),
) -> LuaResult<LuaString<'a>> {
fn compile_source<'lua>(
lua: &'lua Lua,
(source, options): (LuaString<'lua>, Option<LuaTable<'lua>>),
) -> LuaResult<LuaString<'lua>> {
let mut optimization_level = 1;
let mut coverage_level = 0;
let mut debug_level = 1;