From a917fad53080b6b4ca90a602d3cf465b70053df4 Mon Sep 17 00:00:00 2001 From: dthelegend Date: Mon, 13 May 2024 13:08:49 +0100 Subject: [PATCH] Fix bug where greet align could not match; Greet align matches to exact case now, not coaxing the string into upper/lower case --- src/greeter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/greeter.rs b/src/greeter.rs index 3ccb641..c64d230 100644 --- a/src/greeter.rs +++ b/src/greeter.rs @@ -351,7 +351,7 @@ impl Greeter { pub fn greet_align(&self) -> GreetAlign { if let Some(value) = self.option("greet-align") { - match value.to_uppercase().as_str() { + match value.as_str() { "left" => GreetAlign::Left, "right" => GreetAlign::Right, _ => GreetAlign::Center