diff options
author | sitkevij <1553398+sitkevij@users.noreply.github.com> | 2023-09-23 10:02:20 -0700 |
---|---|---|
committer | sitkevij <1553398+sitkevij@users.noreply.github.com> | 2023-09-23 10:02:20 -0700 |
commit | c7b544f66aa67b789b563a457459fc29d9d872a4 (patch) | |
tree | f921ea6096588e141c6219375ba1c7863ef6a35b | |
parent | 14910a007ac92472b33bd6750121e8997c92968a (diff) |
chore: resolve clippy bool_assign
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -307,11 +307,7 @@ pub fn run(matches: ArgMatches) -> Result<(), Box<dyn Error>> { if let Some(color) = matches.value_of(ARG_CLR) { let color_v = color.parse::<u8>().unwrap(); - if color_v == 1 { - colorize = true; - } else { - colorize = false; - } + colorize = color_v == 1; } // array output mode is mutually exclusive |