Fix metadata build.

This commit is contained in:
Stephen Chung 2021-09-12 14:46:31 +08:00
parent 48d40b2ea7
commit 50ad42bd7f

View File

@ -2053,7 +2053,9 @@ impl Engine {
#[inline] #[inline]
#[must_use] #[must_use]
pub fn gen_fn_signatures(&self, include_packages: bool) -> Vec<String> { pub fn gen_fn_signatures(&self, include_packages: bool) -> Vec<String> {
let mut signatures = self.global_namespace().gen_fn_signatures(); let mut signatures = Vec::with_capacity(64);
signatures.extend(self.global_namespace().gen_fn_signatures());
self.global_sub_modules.iter().for_each(|(name, m)| { self.global_sub_modules.iter().for_each(|(name, m)| {
signatures.extend(m.gen_fn_signatures().map(|f| format!("{}::{}", name, f))) signatures.extend(m.gen_fn_signatures().map(|f| format!("{}::{}", name, f)))