Skip to content

Commit

Permalink
more lua changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pront committed Sep 25, 2023
1 parent e8ce10c commit 7a5f625
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/internal_events/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ const fn mlua_error_code(err: &mlua::Error) -> &'static str {
MemoryError(_) => "memory_error",
SafetyError(_) => "memory_safety_error",
MemoryLimitNotAvailable => "memory_limit_not_available",
MainThreadNotAvailable => "main_thread_not_available",
RecursiveMutCallback => "mutable_callback_called_recursively",
CallbackDestructed => "callback_destructed",
StackError => "out_of_stack",
Expand Down
2 changes: 1 addition & 1 deletion src/transforms/lua/v1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl mlua::UserData for LuaEvent {
methods.add_meta_method_mut(
mlua::MetaMethod::NewIndex,
|_lua, this, (key, value): (String, Option<mlua::Value<'lua>>)| {
let key_path = parse_target_path(key.as_str()).map_err(|e| e.to_lua_err())?;
let key_path = parse_target_path(key.as_str()).map_err(|e| e.into_lua_err())?;
match value {
Some(mlua::Value::String(string)) => {
this.inner.as_mut_log().insert(
Expand Down

0 comments on commit 7a5f625

Please sign in to comment.