Compare commits

..

5 Commits

View File

@ -275,7 +275,8 @@ impl mlua::UserData for Instance{
};
iter.find_map(|class|{
let mut class_methods=cf.get_or_create_class_methods(&class.name)?;
class_methods.get_or_create_function(lua,index_str).transpose()
class_methods.get_or_create_function(lua,index_str)
.transpose()
}).transpose()
})?{
return function.into_lua(lua);