Use bitflags.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use crate::eval::calc_index;
|
||||
use crate::module::ModuleFlags;
|
||||
use crate::plugin::*;
|
||||
use crate::{
|
||||
def_package, ExclusiveRange, InclusiveRange, Position, RhaiResultOf, ERR, INT, INT_BITS,
|
||||
@@ -10,7 +11,7 @@ use std::prelude::v1::*;
|
||||
def_package! {
|
||||
/// Package of basic bit-field utilities.
|
||||
pub BitFieldPackage(lib) {
|
||||
lib.standard = true;
|
||||
lib.flags |= ModuleFlags::STANDARD_LIB;
|
||||
|
||||
combine_with_exported_module!(lib, "bit_field", bit_field_functions);
|
||||
}
|
||||
|
Reference in New Issue
Block a user