From 537ba67cc938e72f2188f83c441273d582b5a3e3 Mon Sep 17 00:00:00 2001 From: Johan Smits Date: Thu, 9 Sep 2021 16:14:47 +0200 Subject: [PATCH] Make the style match realy case insensitive. (#51) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7a83465..ca933cc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -183,7 +183,7 @@ fn main() -> std::io::Result<()> { .values_of("LOAD_PATH") .map_or_else(Vec::new, |vals| vals.map(Path::new).collect()); - let style = match matches.value_of("STYLE").unwrap() { + let style = match &matches.value_of("STYLE").unwrap().to_lowercase() as &str { "expanded" => OutputStyle::Expanded, "compressed" => OutputStyle::Compressed, _ => unreachable!(),