From 4e965c3f3f57f87c02c7547b7224cf07bb753487 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 23 Oct 2021 17:49:52 +0800 Subject: [PATCH] Fix no_module+internals build. --- CHANGELOG.md | 5 +++++ src/ast.rs | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b6e69f2..4cda46a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ============= diff --git a/src/ast.rs b/src/ast.rs index 3e1cd195..34d492a5 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -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 { self.functions .iter_script_fn()