lol idk #1

Open
Quaternions wants to merge 827 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit fe91de5668 - Show all commits

View File

@ -267,12 +267,11 @@ impl mlua::UserData for Instance{
database:db, database:db,
descriptor:Some(class), descriptor:Some(class),
}; };
iter.find_map(|class| iter.find_map(|class|{
cf.get_or_create_class_methods(&class.name) let mut class_methods=cf.get_or_create_class_methods(&class.name)?;
.and_then(|mut class_methods| class_methods.get_or_create_function(lua,index_str)
class_methods.get_or_create_function(lua,index_str).transpose() .transpose()
) }).transpose()
).transpose()
})?{ })?{
return function.into_lua(lua); return function.into_lua(lua);
} }