From f9ee0c29be1bedbf8c1e413be344e36002e196ff Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 18 Apr 2022 23:24:08 +0800 Subject: [PATCH] Fix builds. --- src/eval/expr.rs | 4 +--- src/func/register.rs | 11 ++++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/eval/expr.rs b/src/eval/expr.rs index 74ef43a4..44af2fcf 100644 --- a/src/eval/expr.rs +++ b/src/eval/expr.rs @@ -63,9 +63,7 @@ impl Engine { self.search_scope_only(scope, global, lib, this_ptr, expr, level) } #[cfg(feature = "no_module")] - (_, (), ..) => { - self.search_scope_only(scope, global, caches, lib, this_ptr, expr, level) - } + (_, (), ..) => self.search_scope_only(scope, global, lib, this_ptr, expr, level), // Qualified variable access #[cfg(not(feature = "no_module"))] diff --git a/src/func/register.rs b/src/func/register.rs index 84d1d728..5b08ab31 100644 --- a/src/func/register.rs +++ b/src/func/register.rs @@ -5,9 +5,8 @@ use super::call::FnCallArgs; use super::callable_function::CallableFunction; use super::native::{FnAny, SendSync}; -use crate::tokenizer::Position; use crate::types::dynamic::{DynamicWriteLock, Variant}; -use crate::{reify, Dynamic, NativeCallContext, RhaiResultOf, ERR}; +use crate::{reify, Dynamic, NativeCallContext, RhaiResultOf}; #[cfg(feature = "no_std")] use std::prelude::v1::*; use std::{any::TypeId, mem}; @@ -102,9 +101,11 @@ macro_rules! check_constant { _ => false, }; if deny { - return Err( - ERR::ErrorAssignmentToConstant(String::new(), Position::NONE).into(), - ); + return Err(crate::ERR::ErrorAssignmentToConstant( + String::new(), + crate::Position::NONE, + ) + .into()); } } }