From 6ff74f08aba46f85f735da97b462fe4c9c18efe3 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 8 Jan 2025 23:31:56 -0800 Subject: [PATCH] roblox_emulator: deref returns correct type --- lib/roblox_emulator/src/runner/instance/instance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roblox_emulator/src/runner/instance/instance.rs b/lib/roblox_emulator/src/runner/instance/instance.rs index 7dc1f46..e0e524d 100644 --- a/lib/roblox_emulator/src/runner/instance/instance.rs +++ b/lib/roblox_emulator/src/runner/instance/instance.rs @@ -33,7 +33,7 @@ pub fn set_globals(lua:&mlua::Lua,globals:&mlua::Table)->Result<(),mlua::Error>{ // LMAO look at this function! pub fn dom_mut(lua:&mlua::Lua,mut f:impl FnMut(&mut WeakDom)->mlua::Result)->mlua::Result{ let mut dom=lua.app_data_mut::<&'static mut WeakDom>().ok_or_else(||mlua::Error::runtime("DataModel missing"))?; - f(&mut *dom) + f(*dom) } fn coerce_float32(value:&mlua::Value)->Option{