From 93883014f75ee9005a69d57ccb2d653015b6c216 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Thu, 13 Jun 2024 20:22:33 +0200 Subject: Simplify calculations, use a more nested struct for pixels --- src/parseopts.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/parseopts.rs') diff --git a/src/parseopts.rs b/src/parseopts.rs index 3a06114..60f811e 100644 --- a/src/parseopts.rs +++ b/src/parseopts.rs @@ -118,10 +118,10 @@ pub fn parseopt(opts: &mut OptsBuilder, arg: &str, value: Option, progna opts.graph_type = GraphType::Ascii; } "braille" | "braille6" => { - opts.graph_type = GraphType::Braille(BrailleType::dot6); + opts.graph_type = GraphType::Braille(BrailleType::Dot6); } "braille8" => { - opts.graph_type = GraphType::Braille(BrailleType::dot8); + opts.graph_type = GraphType::Braille(BrailleType::Dot8); } t => { println!( @@ -161,7 +161,7 @@ pub fn parseopt(opts: &mut OptsBuilder, arg: &str, value: Option, progna opts.graph_type = GraphType::Ascii; } "b" | "braille" => { - opts.graph_type = GraphType::Braille(BrailleType::dot6); + opts.graph_type = GraphType::Braille(BrailleType::Dot6); } "c" | "cut" => { opts.cut = true; -- cgit v1.2.3