From b87dc1b281572ea5998c87c032e510fcfdb4c3a2 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 14 Mar 2020 20:08:18 +0800 Subject: [PATCH] Only map to expressions for constants. --- src/scope.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scope.rs b/src/scope.rs index 081237fd..b20eb241 100644 --- a/src/scope.rs +++ b/src/scope.rs @@ -73,13 +73,13 @@ impl<'a> Scope<'a> { let value = value.into_dynamic(); // Map into constant expressions - let (expr, value) = map_dynamic_to_expr(value); + //let (expr, value) = map_dynamic_to_expr(value); self.0.push(ScopeEntry { name: name.into(), var_type: VariableType::Normal, value, - expr, + expr: None, }); } @@ -110,13 +110,13 @@ impl<'a> Scope<'a> { var_type: VariableType, value: Dynamic, ) { - let (expr, value) = map_dynamic_to_expr(value); + //let (expr, value) = map_dynamic_to_expr(value); self.0.push(ScopeEntry { name: name.into(), var_type, value, - expr, + expr: None, }); }