Fix no_module+internals build.

This commit is contained in:
Stephen Chung 2021-10-23 17:49:52 +08:00
parent c768ef4ca9
commit 4e965c3f3f
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,11 @@ Rhai Release Notes
Version 1.1.1
=============
Bug fixes
---------
* The `no_module` and `internals` features now work together without a compilation error.
Version 1.1.0
=============

View File

@ -717,8 +717,7 @@ impl AST {
///
/// Not available under `no_function`.
#[cfg(not(feature = "no_function"))]
#[cfg(not(feature = "no_module"))]
#[inline(always)]
#[inline]
pub(crate) fn iter_fn_def(&self) -> impl Iterator<Item = &ScriptFnDef> {
self.functions
.iter_script_fn()