Use bitflags.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#![cfg(not(feature = "no_time"))]
|
||||
|
||||
use super::arithmetic::make_err as make_arithmetic_err;
|
||||
use crate::module::ModuleFlags;
|
||||
use crate::plugin::*;
|
||||
use crate::{def_package, Dynamic, RhaiResult, RhaiResultOf, INT};
|
||||
|
||||
@@ -16,7 +17,7 @@ use instant::{Duration, Instant};
|
||||
def_package! {
|
||||
/// Package of basic timing utilities.
|
||||
pub BasicTimePackage(lib) {
|
||||
lib.standard = true;
|
||||
lib.flags |= ModuleFlags::STANDARD_LIB;
|
||||
|
||||
// Register date/time functions
|
||||
combine_with_exported_module!(lib, "time", time_functions);
|
||||
|
Reference in New Issue
Block a user