From d84c48f3367210b6d99d44db9f9a1753b5038be7 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 5 Oct 2024 14:31:05 -0700 Subject: [PATCH] no closure --- src/runner/instance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/instance.rs b/src/runner/instance.rs index 70e17c3..0d70efb 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -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>; 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, } };