From 400f535469f6b0244fbf1b4ea135c7adb0975bdc Mon Sep 17 00:00:00 2001 From: Valerie Date: Thu, 29 Aug 2024 14:20:54 -0400 Subject: [PATCH] removed '$' last variable as it doesn't work --- src/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4558694..6a68dd6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,8 +85,6 @@ fn main() { fn eval(expression: &str, context: &mut HashMapContext, quiet: bool) { let result = eval_with_context_mut(expression, context); - if let Ok(ref result) = result { context.set_value("$".to_owned(), result.clone()).ok(); } - if quiet { if let Ok(result) = result { println!("{result}") } else { exit(1) }