/// Calculate a list of candidate hashes based on the options specified.
/// If no hash options have been specified returns None.
/// Calculate a list of candidate hashes based on the options specified.
/// If no hash options have been specified returns None.
// Get a reader for either standard input or the chosen path
let reader: Box<dyn Read> = if path.to_str() == Some("-") {
Box::new(std::io::stdin())
// Get a reader for either standard input or the chosen path
let reader: Box<dyn Read> = if path.to_str() == Some("-") {
Box::new(std::io::stdin())
let valid_md5 = "d229da563da18fe5d58cd95a6467d584";
let valid_sha1 = "b314c7ebb7d599944981908b7f3ed33a30e78f3a";
let valid_sha1_2 = valid_sha1.to_uppercase();
let valid_md5 = "d229da563da18fe5d58cd95a6467d584";
let valid_sha1 = "b314c7ebb7d599944981908b7f3ed33a30e78f3a";
let valid_sha1_2 = valid_sha1.to_uppercase();
fe6c26d485a3573a1cb0ad0682f5105325a1905f shasums";
let lines = shasums.lines().map(|l| std::io::Result::Ok(l));
fe6c26d485a3573a1cb0ad0682f5105325a1905f shasums";
let lines = shasums.lines().map(|l| std::io::Result::Ok(l));
for digest in [no_format, invalid_format, extra_space] {
let lines = digest.lines().map(|l| std::io::Result::Ok(l));
assert!(
for digest in [no_format, invalid_format, extra_space] {
let lines = digest.lines().map(|l| std::io::Result::Ok(l));
assert!(