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

hashsum: rename the variable for something more explicit

This commit is contained in:
Sylvestre Ledru 2024-05-18 10:03:28 +02:00
parent 23d5235e7c
commit 7a46ea371f

View file

@ -327,7 +327,7 @@ pub fn uumain(mut args: impl uucore::Args) -> UResult<()> {
// least somewhat better from a user's perspective. // least somewhat better from a user's perspective.
let matches = command.try_get_matches_from(args)?; let matches = command.try_get_matches_from(args)?;
let (name, algo, bits) = detect_algo(&binary_name, &matches)?; let (algoname, algo, bits) = detect_algo(&binary_name, &matches)?;
let binary = if matches.get_flag("binary") { let binary = if matches.get_flag("binary") {
true true
@ -355,7 +355,7 @@ pub fn uumain(mut args: impl uucore::Args) -> UResult<()> {
} }
let opts = Options { let opts = Options {
algoname: name, algoname,
digest: algo, digest: algo,
output_bits: bits, output_bits: bits,
binary, binary,