mirror of
https://github.com/uutils/coreutils
synced 2024-10-04 14:59:20 +00:00
cksum/hashsum: Move the algo mgmt into a dedicated function
This commit is contained in:
parent
e7898ab32a
commit
c2292a8da6
|
@ -396,6 +396,7 @@ fn get_file_to_check(
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns a reader to the list of checksums
|
||||
fn get_input_file(filename_input: &OsStr, input_is_stdin: bool) -> UResult<Box<dyn Read>> {
|
||||
if input_is_stdin {
|
||||
Ok(Box::new(stdin())) // Use stdin if "-" is specified
|
||||
|
|
Loading…
Reference in a new issue