Reduce size of Engine.
This commit is contained in:
@@ -170,7 +170,7 @@ pub fn gen_metadata_to_json(
|
||||
let mut global = ModuleMetadata::new();
|
||||
|
||||
#[cfg(not(feature = "no_module"))]
|
||||
for (name, m) in &engine.global_sub_modules {
|
||||
for (name, m) in engine.global_sub_modules.iter().flat_map(|m| m.iter()) {
|
||||
global.modules.insert(name, m.as_ref().into());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user