From 5dfeb809a4e5e4f4f9be63f0ca643c7dcdf95a2b Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Sun, 5 Jan 2025 14:50:14 +0100 Subject: [PATCH] cksum: remove some unnecessary type info --- src/uu/cksum/src/cksum.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/uu/cksum/src/cksum.rs b/src/uu/cksum/src/cksum.rs index e384e51c1..b9f741338 100644 --- a/src/uu/cksum/src/cksum.rs +++ b/src/uu/cksum/src/cksum.rs @@ -244,16 +244,16 @@ fn had_reset(args: &[OsString]) -> bool { * and "easier" to understand */ fn handle_tag_text_binary_flags(matches: &clap::ArgMatches) -> UResult<(bool, bool)> { - let untagged: bool = matches.get_flag(options::UNTAGGED); - let tag: bool = matches.get_flag(options::TAG); - let tag: bool = tag || !untagged; + let untagged = matches.get_flag(options::UNTAGGED); + let tag = matches.get_flag(options::TAG); + let tag = tag || !untagged; - let binary_flag: bool = matches.get_flag(options::BINARY); + let binary_flag = matches.get_flag(options::BINARY); let args: Vec = std::env::args_os().collect(); let had_reset = had_reset(&args); - let asterisk: bool = prompt_asterisk(tag, binary_flag, had_reset); + let asterisk = prompt_asterisk(tag, binary_flag, had_reset); Ok((tag, asterisk)) }