From 8ab618103cdae3c8a02e1211642006e051668a61 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 8 May 2021 14:15:41 -0400 Subject: [PATCH] Clean up default macros and constants --- src/calc.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/calc.rs b/src/calc.rs index fc05dbd..4f9bb98 100644 --- a/src/calc.rs +++ b/src/calc.rs @@ -80,13 +80,6 @@ impl Default for Calculator { state: CalculatorState::Normal, stack: vec![1.0, 2.0].into_iter().collect(), macros: [ - ( - 'e', - CalculatorMacro { - help: String::from("Empty"), - value: String::from(""), - }, - ), ( 'm', CalculatorMacro { @@ -95,11 +88,11 @@ impl Default for Calculator { }, ), ( - 'u', + 'Q', CalculatorMacro { help: String::from("Quadratic Formula"), value: String::from( - "RcRbRarbnrb2 ^4 rarc**-v+2 ra*/rbnrb2^4 rarc**-v-2 ra*/", + "RcRbRarbnrb2^4rarc**-v+2ra*/rbnrb2^4rarc**-v-2ra*/", ), }, ),