Fix builds.
This commit is contained in:
parent
60a933862e
commit
f9ee0c29be
@ -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"))]
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user