no closure

This commit is contained in:
Quaternions 2024-10-05 14:31:05 -07:00
parent ae0b46e217
commit d84c48f336

View File

@ -23,7 +23,7 @@ fn place_id<'lua>(lua:&'lua mlua::Lua,tuple:mlua::MultiValue<'lua>)->mlua::Resul
type FPointer=for<'lua> fn(&'lua mlua::Lua,mlua::MultiValue<'lua>)->mlua::Result<mlua::MultiValue<'lua>>;
static CLASS_FUNCTION_DATABASE:phf::Map<&str,phf::Map<&str,FPointer>>=phf::phf_map!{
"DataModel"=>phf::phf_map!{
"GetService"=>|a,b|place_id(a,b),
"GetService"=>place_id as FPointer,
}
};