remove and_then
This commit is contained in:
parent
6dfa46bc67
commit
fa4ae23381
@ -267,12 +267,10 @@ impl mlua::UserData for Instance{
|
||||
database:db,
|
||||
descriptor:Some(class),
|
||||
};
|
||||
iter.find_map(|class|
|
||||
cf.get_or_create_class_methods(&class.name)
|
||||
.and_then(|mut class_methods|
|
||||
class_methods.get_or_create_function(lua,index_str).transpose()
|
||||
)
|
||||
).transpose()
|
||||
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()
|
||||
}).transpose()
|
||||
})?{
|
||||
return function.into_lua(lua);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user