From 8497c125ef0f5fd6749e61a6cdb51d59b41472af Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 20 Sep 2023 11:06:37 -0700 Subject: [PATCH] Minor cleanup --- src/context.rs | 6 +++--- src/evaluate/operator.rs | 3 ++- src/quantity/unit/unit.rs | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/context.rs b/src/context.rs index c61444c..3839f2f 100644 --- a/src/context.rs +++ b/src/context.rs @@ -61,7 +61,7 @@ impl Config { #[derive(Debug)] -#[derive(Clone)] +//#[derive(Clone)] pub struct Context { pub config: Config, @@ -76,12 +76,12 @@ pub struct Context { // General functions impl Context { pub fn new() -> Context { - Context{ + Context { config: Config::new(), history: Vec::new(), variables: HashMap::new(), functions: HashMap::new(), - shadow: HashMap::new(), + shadow: HashMap::new() } } diff --git a/src/evaluate/operator.rs b/src/evaluate/operator.rs index f5fbf8a..0851212 100644 --- a/src/evaluate/operator.rs +++ b/src/evaluate/operator.rs @@ -164,7 +164,8 @@ pub fn eval_operator(context: &mut Context, g: &Expression) -> Result