From f388d22c0fcfce63ad17278a5ec140af0ad11cc2 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 7 Feb 2021 15:52:06 +0800 Subject: [PATCH] Fix no_module build., --- src/engine.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine.rs b/src/engine.rs index d7e6bfd5..2b0e6569 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -1868,6 +1868,7 @@ impl Engine { .into_iter() .try_fold(Default::default(), |_, stmt| { match stmt { + #[cfg(not(feature = "no_module"))] Stmt::Import(_, _, _) => { // When imports list is modified, clear the functions lookup cache if has_imports {