From 796206f293d97e2f1bed355bcfac79f4c371e210 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 5 Oct 2022 15:15:42 +0800 Subject: [PATCH] Fix build. --- src/engine.rs | 2 +- src/parser.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/engine.rs b/src/engine.rs index 68ec87cc..323f05b5 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -413,7 +413,7 @@ impl Engine { #[inline(always)] pub(crate) const fn track_operation( &self, - _: &crate::GlobalRuntimeState, + _: &crate::eval::GlobalRuntimeState, _: Position, ) -> crate::RhaiResultOf<()> { Ok(()) diff --git a/src/parser.rs b/src/parser.rs index 77037327..798067c9 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -34,10 +34,6 @@ pub type ParseResult = Result; type FnLib = StraightHashMap>; -const KEYWORD_SEMICOLON: &str = Token::SemiColon.literal_syntax(); - -const KEYWORD_CLOSE_BRACE: &str = Token::RightBrace.literal_syntax(); - /// Invalid variable name that acts as a search barrier in a [`Scope`]. const SCOPE_SEARCH_BARRIER_MARKER: &str = "$ BARRIER $"; @@ -2468,6 +2464,8 @@ impl Engine { pos: Position, ) -> ParseResult { use crate::api::custom_syntax::markers::*; + const KEYWORD_SEMICOLON: &str = Token::SemiColon.literal_syntax(); + const KEYWORD_CLOSE_BRACE: &str = Token::RightBrace.literal_syntax(); let mut settings = settings; let mut inputs = StaticVec::new_const();