Avoid warnings in standard build.
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
#![cfg(not(feature = "no_std"))]
|
||||
use super::logic::{eq, gt, gte, lt, lte, ne};
|
||||
|
||||
#[cfg(feature = "no_float")]
|
||||
use super::math_basic::MAX_INT;
|
||||
|
||||
use crate::def_package;
|
||||
use crate::module::FuncReturn;
|
||||
use crate::parser::INT;
|
||||
use crate::result::EvalAltResult;
|
||||
use crate::token::Position;
|
||||
|
||||
#[cfg(not(feature = "no_float"))]
|
||||
use crate::parser::FLOAT;
|
||||
|
||||
#[cfg(feature = "no_float")]
|
||||
use crate::{module::FuncReturn, parser::INT, token::Position};
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use crate::stdlib::time::Instant;
|
||||
@@ -14,9 +19,6 @@ use crate::stdlib::time::Instant;
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
use instant::Instant;
|
||||
|
||||
#[cfg(not(feature = "no_float"))]
|
||||
use crate::parser::FLOAT;
|
||||
|
||||
def_package!(crate:BasicTimePackage:"Basic timing utilities.", lib, {
|
||||
// Register date/time functions
|
||||
lib.set_fn_0("timestamp", || Ok(Instant::now()));
|
||||
|
Reference in New Issue
Block a user