From 57140cbeebcf43bdb084e8b728dd33eadf0d2c08 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 8 Mar 2021 15:55:26 +0800 Subject: [PATCH] Fix internals build. --- src/ast.rs | 4 ++-- src/lib.rs | 4 ---- tests/bit_shift.rs | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/ast.rs b/src/ast.rs index e586caeb..81b77671 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -1168,14 +1168,14 @@ pub struct FnCallExpr { pub hash: FnHash, /// Does this function call capture the parent scope? pub capture: bool, + /// List of function call arguments. + pub args: StaticVec, /// Namespace of the function, if any. Boxed because it occurs rarely. pub namespace: Option, /// Function name. /// Use [`Cow<'static, str>`][Cow] because a lot of operators (e.g. `==`, `>=`) are implemented as /// function calls and the function names are predictable, so no need to allocate a new [`String`]. pub name: Cow<'static, str>, - /// List of function call arguments. - pub args: StaticVec, } /// A type that wraps a [`FLOAT`] and implements [`Hash`]. diff --git a/src/lib.rs b/src/lib.rs index 1ed55ca3..aa95de62 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -141,10 +141,6 @@ pub use fn_native::Shared; #[cfg(not(feature = "no_closure"))] use fn_native::Locked; -#[cfg(feature = "internals")] -pub use utils::{calc_fn_hash, calc_fn_params_hash, combine_hashes, HashableHashMap}; - -#[cfg(not(feature = "internals"))] pub(crate) use utils::{calc_fn_hash, calc_fn_params_hash, combine_hashes}; pub use rhai_codegen::*; diff --git a/tests/bit_shift.rs b/tests/bit_shift.rs index fb318e4d..0b888e32 100644 --- a/tests/bit_shift.rs +++ b/tests/bit_shift.rs @@ -1,4 +1,4 @@ - use rhai::{Engine, EvalAltResult, INT}; +use rhai::{Engine, EvalAltResult, INT}; #[test] fn test_left_shift() -> Result<(), Box> {