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

change variable name

This commit is contained in:
Jeremy Smart 2025-05-13 19:21:04 -04:00
parent c1d2362f1d
commit 64be4369b3
No known key found for this signature in database
GPG key ID: 5AD8086D5DF29A8F

View file

@ -522,7 +522,7 @@ where
I: Iterator<Item = &'a OsStr>,
{
let binary_marker = if options.binary { "*" } else { " " };
let mut err = None;
let mut err_found = None;
for filename in files {
let filename = Path::new(filename);
@ -537,7 +537,7 @@ where
options.binary_name,
filename.to_string_lossy()
);
err = Some(ChecksumError::Io(e));
err_found = Some(ChecksumError::Io(e));
continue;
}
};
@ -578,7 +578,7 @@ where
println!("{prefix}{sum} {binary_marker}{escaped_filename}");
}
}
match err {
match err_found {
None => Ok(()),
Some(e) => Err(Box::new(e)),
}