Compare commits

..

4 Commits

Author SHA1 Message Date
e39b2cd674 non-functional ColorSequence skeleton 2024-10-06 18:48:14 -07:00
7625ea0959 non-functional NumberSequence skeleton 2024-10-06 18:45:25 -07:00
784dde3386 cursed userdata take 2024-10-06 18:45:10 -07:00
fa4ae23381 remove and_then 2024-10-06 18:20:53 -07:00

View File

@ -269,8 +269,7 @@ impl mlua::UserData for Instance{
}; };
iter.find_map(|class|{ iter.find_map(|class|{
let mut class_methods=cf.get_or_create_class_methods(&class.name)?; let mut class_methods=cf.get_or_create_class_methods(&class.name)?;
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);