Fix builds.

This commit is contained in:
Stephen Chung
2021-11-27 23:29:32 +08:00
parent 4fc088a0f1
commit 9c4ed44ab8
3 changed files with 16 additions and 10 deletions

View File

@@ -2,7 +2,6 @@
#![cfg(not(feature = "no_function"))]
use crate::engine::{EvalState, Imports};
use crate::func::call::ensure_no_data_race;
use crate::types::dynamic::Variant;
use crate::{
Dynamic, Engine, EvalAltResult, FuncArgs, Position, RhaiResult, Scope, StaticVec, AST,
@@ -176,7 +175,7 @@ impl Engine {
// Check for data race.
#[cfg(not(feature = "no_closure"))]
ensure_no_data_race(name, &mut args, false)?;
crate::func::call::ensure_no_data_race(name, &mut args, false)?;
let result = self.call_script_fn(
scope,