From ffa1f5fb4ad6c688e8b19288584a6fef60f01417 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 23 Dec 2022 18:54:55 +0800 Subject: [PATCH] Fix builds. --- src/optimizer.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/optimizer.rs b/src/optimizer.rs index 516747d6..89d66e47 100644 --- a/src/optimizer.rs +++ b/src/optimizer.rs @@ -2,7 +2,8 @@ #![cfg(not(feature = "no_optimize"))] use crate::ast::{ - ASTFlags, Expr, OpAssignment, Stmt, StmtBlock, StmtBlockContainer, SwitchCasesCollection, + ASTFlags, Expr, FlowControl, OpAssignment, Stmt, StmtBlock, StmtBlockContainer, + SwitchCasesCollection, }; use crate::engine::{KEYWORD_DEBUG, KEYWORD_EVAL, KEYWORD_FN_PTR, KEYWORD_PRINT, KEYWORD_TYPE_OF}; use crate::eval::{Caches, GlobalRuntimeState}; @@ -12,8 +13,8 @@ use crate::module::ModuleFlags; use crate::tokenizer::Token; use crate::types::dynamic::AccessMode; use crate::{ - calc_fn_hash, calc_fn_hash_full, Dynamic, Engine, FlowControl, FnPtr, Identifier, - ImmutableString, Position, Scope, StaticVec, AST, + calc_fn_hash, calc_fn_hash_full, Dynamic, Engine, FnPtr, Identifier, ImmutableString, Position, + Scope, StaticVec, AST, }; #[cfg(feature = "no_std")] use std::prelude::v1::*;