diff --git a/lib/roblox_emulator/src/runner/macros.rs b/lib/roblox_emulator/src/runner/macros.rs index 180c020..6e097ad 100644 --- a/lib/roblox_emulator/src/runner/macros.rs +++ b/lib/roblox_emulator/src/runner/macros.rs @@ -1,22 +1,22 @@ macro_rules! type_from_lua_userdata{ - ($asd:ident)=>{ - impl mlua::FromLua for $asd{ + ($ty:ident)=>{ + impl mlua::FromLua for $ty{ fn from_lua(value:mlua::Value,_lua:&mlua::Lua)->Result{ match value{ mlua::Value::UserData(ud)=>Ok(*ud.borrow::()?), - other=>Err(mlua::Error::runtime(format!("Expected {} got {:?}",stringify!($asd),other))), + other=>Err(mlua::Error::runtime(format!("Expected {} got {:?}",stringify!($ty),other))), } } } }; } macro_rules! type_from_lua_userdata_lua_lifetime{ - ($asd:ident)=>{ - impl mlua::FromLua for $asd<'static>{ + ($ty:ident)=>{ + impl mlua::FromLua for $ty<'static>{ fn from_lua(value:mlua::Value,_lua:&mlua::Lua)->Result{ match value{ mlua::Value::UserData(ud)=>Ok(*ud.borrow::()?), - other=>Err(mlua::Error::runtime(format!("Expected {} got {:?}",stringify!($asd),other))), + other=>Err(mlua::Error::runtime(format!("Expected {} got {:?}",stringify!($ty),other))), } } }