mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
Update src/lune/builtins/luau.rs
Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
parent
38a77238b7
commit
878e939d95
1 changed files with 2 additions and 4 deletions
|
@ -118,11 +118,9 @@ fn compile_source<'lua>(
|
|||
|
||||
fn load_source<'a>(
|
||||
lua: &'static Lua,
|
||||
(source, options): (LuaString<'a>, Option<LoadOptions>),
|
||||
(source, options): (LuaString<'a>, LoadOptions),
|
||||
) -> LuaResult<LuaFunction<'a>> {
|
||||
let _options = options.unwrap_or_default();
|
||||
|
||||
lua.load(source.to_str()?.trim_start())
|
||||
.set_name(_options.debug_name)
|
||||
.set_name(options.debug_name)
|
||||
.into_function()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue