Use combine_flatten for plugin modules.

This commit is contained in:
Stephen Chung
2020-08-21 21:48:45 +08:00
parent 40f71320f3
commit 08977e2a62
12 changed files with 64 additions and 19 deletions

View File

@@ -9,11 +9,11 @@ use crate::plugin::*;
use crate::stdlib::vec::Vec;
def_package!(crate:BasicMapPackage:"Basic object map utilities.", lib, {
lib.combine(exported_module!(map_functions));
lib.combine_flatten(exported_module!(map_functions));
// Register map access functions
#[cfg(not(feature = "no_index"))]
lib.combine(exported_module!(index_functions));
lib.combine_flatten(exported_module!(index_functions));
});
#[export_module]