Use bitflags.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#![cfg(not(feature = "no_object"))]
|
||||
|
||||
use crate::engine::OP_EQUALS;
|
||||
use crate::module::ModuleFlags;
|
||||
use crate::plugin::*;
|
||||
use crate::{def_package, Dynamic, ImmutableString, Map, NativeCallContext, RhaiResultOf, INT};
|
||||
#[cfg(feature = "no_std")]
|
||||
@@ -12,7 +13,7 @@ use crate::Array;
|
||||
def_package! {
|
||||
/// Package of basic object map utilities.
|
||||
pub BasicMapPackage(lib) {
|
||||
lib.standard = true;
|
||||
lib.flags |= ModuleFlags::STANDARD_LIB;
|
||||
|
||||
combine_with_exported_module!(lib, "map", map_functions);
|
||||
}
|
||||
|
Reference in New Issue
Block a user