Clean up default macros and constants
This commit is contained in:
parent
b745b0a77c
commit
8ab618103c
11
src/calc.rs
11
src/calc.rs
@ -80,13 +80,6 @@ impl Default for Calculator {
|
|||||||
state: CalculatorState::Normal,
|
state: CalculatorState::Normal,
|
||||||
stack: vec![1.0, 2.0].into_iter().collect(),
|
stack: vec![1.0, 2.0].into_iter().collect(),
|
||||||
macros: [
|
macros: [
|
||||||
(
|
|
||||||
'e',
|
|
||||||
CalculatorMacro {
|
|
||||||
help: String::from("Empty"),
|
|
||||||
value: String::from(""),
|
|
||||||
},
|
|
||||||
),
|
|
||||||
(
|
(
|
||||||
'm',
|
'm',
|
||||||
CalculatorMacro {
|
CalculatorMacro {
|
||||||
@ -95,11 +88,11 @@ impl Default for Calculator {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
'u',
|
'Q',
|
||||||
CalculatorMacro {
|
CalculatorMacro {
|
||||||
help: String::from("Quadratic Formula"),
|
help: String::from("Quadratic Formula"),
|
||||||
value: String::from(
|
value: String::from(
|
||||||
"RcRbRarbnrb2 ^4 rarc**-v+2 ra*/rbnrb2^4 rarc**-v-2 ra*/",
|
"RcRbRarbnrb2^4rarc**-v+2ra*/rbnrb2^4rarc**-v-2ra*/",
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user