From f35aeefeb1c67347ff2b42c6bcdc7bee4e22fcd6 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 2 Aug 2023 12:37:15 -0700 Subject: [PATCH] Minor cleanup --- src/parser/expression/function.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/parser/expression/function.rs b/src/parser/expression/function.rs index 9c71fd5..24482f7 100644 --- a/src/parser/expression/function.rs +++ b/src/parser/expression/function.rs @@ -112,16 +112,19 @@ impl Function { "tobase" => {Some(Function::ToBase)}, "toC" => {Some(Function::ToCelsius)}, - "fromC" => {Some(Function::FromCelsius)}, - "toF" => {Some(Function::ToFahrenheit)}, - "fromF" => {Some(Function::FromFahrenheit)}, "tocelsius" => {Some(Function::ToCelsius)}, - "fromcelsius" => {Some(Function::FromCelsius)}, - "tofahrenheit" => {Some(Function::ToFahrenheit)}, - "fromfahrenheit" => {Some(Function::FromFahrenheit)}, "toCelsius" => {Some(Function::ToCelsius)}, + + "fromC" => {Some(Function::FromCelsius)}, + "fromcelsius" => {Some(Function::FromCelsius)}, "fromCelsius" => {Some(Function::FromCelsius)}, + "toFahrenheit" => {Some(Function::ToFahrenheit)}, + "tofahrenheit" => {Some(Function::ToFahrenheit)}, + "toF" => {Some(Function::ToFahrenheit)}, + + "fromF" => {Some(Function::FromFahrenheit)}, + "fromfahrenheit" => {Some(Function::FromFahrenheit)}, "fromFahrenheit" => {Some(Function::FromFahrenheit)}, _ => None }