Fix feature build.

This commit is contained in:
Stephen Chung 2022-09-10 13:49:21 +08:00
parent ec45224120
commit 32825d2ca8

View File

@ -1813,7 +1813,7 @@ impl Module {
) -> impl Iterator<Item = (FnNamespace, FnAccess, &str, usize)> {
self.iter_fn()
.filter(|&f| f.func.is_script())
.map(|f| (f.namespace, f.access, f.name.as_str(), f.params))
.map(|f| (f.namespace, f.access, f.name.as_str(), f.num_params))
}
/// _(internals)_ Get an iterator over all script-defined functions in the [`Module`].