From 7a5f625adcf183e88612b41cb293b583b67aa2df Mon Sep 17 00:00:00 2001 From: Pavlos Rontidis Date: Mon, 25 Sep 2023 19:59:06 -0400 Subject: [PATCH] more lua changes --- src/internal_events/lua.rs | 1 - src/transforms/lua/v1/mod.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/internal_events/lua.rs b/src/internal_events/lua.rs index 302e908d490c1..a18665d87b419 100644 --- a/src/internal_events/lua.rs +++ b/src/internal_events/lua.rs @@ -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", diff --git a/src/transforms/lua/v1/mod.rs b/src/transforms/lua/v1/mod.rs index 5a8600835cefb..5fb82cf9610a3 100644 --- a/src/transforms/lua/v1/mod.rs +++ b/src/transforms/lua/v1/mod.rs @@ -226,7 +226,7 @@ impl mlua::UserData for LuaEvent { methods.add_meta_method_mut( mlua::MetaMethod::NewIndex, |_lua, this, (key, value): (String, Option>)| { - 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(