Skip to content

Commit

Permalink
cksum: remove some unnecessary type info
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Jan 5, 2025
1 parent d9936ca commit 5dfeb80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/uu/cksum/src/cksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<OsString> = 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))
}
Expand Down

0 comments on commit 5dfeb80

Please sign in to comment.