From 97e2010826b6658b2f7e19722530b9345b128e93 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 5 Oct 2024 22:30:17 -0700 Subject: [PATCH] split type onto multiple lines --- src/runner/instance.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/runner/instance.rs b/src/runner/instance.rs index b088f38..2da9a52 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -345,7 +345,12 @@ type ClassFunctionPointer=fn(&mlua::Lua,mlua::MultiValue)->mlua::Result>=phf::phf_map!{ +type CFD=phf::Map<&'static str,// Class name + phf::Map<&'static str,// Method name + ClassFunctionPointer + > +>; +static CLASS_FUNCTION_DATABASE:CFD=phf::phf_map!{ "DataModel"=>phf::phf_map!{ "GetService"=>cf!(|lua,_this,service:mlua::String|{ dom_mut(lua,|dom|{ @@ -374,7 +379,7 @@ static CLASS_FUNCTION_DATABASE:phf::Map<&str,phf::Map<&str,ClassFunctionPointer> #[derive(Default)] struct ClassFunctions{ classes:HashMap<&'static str,//ClassName - HashMap<&'static str,//Function name + HashMap<&'static str,//Method name mlua::Function > >