1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #7080 from cakebaker/cksum_remove_unnecessary_type_info

cksum: remove some unnecessary type info
This commit is contained in:
Sylvestre Ledru 2025-01-05 17:58:20 +01:00 committed by GitHub
commit 8d55e4edd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -244,16 +244,16 @@ fn had_reset(args: &[OsString]) -> bool {
* and "easier" to understand * and "easier" to understand
*/ */
fn handle_tag_text_binary_flags(matches: &clap::ArgMatches) -> UResult<(bool, bool)> { fn handle_tag_text_binary_flags(matches: &clap::ArgMatches) -> UResult<(bool, bool)> {
let untagged: bool = matches.get_flag(options::UNTAGGED); let untagged = matches.get_flag(options::UNTAGGED);
let tag: bool = matches.get_flag(options::TAG); let tag = matches.get_flag(options::TAG);
let tag: bool = tag || !untagged; 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 args: Vec<OsString> = std::env::args_os().collect();
let had_reset = had_reset(&args); 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)) Ok((tag, asterisk))
} }