utils (crypto): fix clippy

This commit is contained in:
MedzikUser 2022-04-16 20:30:27 +02:00
parent d074fc58a2
commit d469d105f1
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ pub fn hasher(algo: &str, input: String) -> Result<String> {
encode(hasher.finalize()) encode(hasher.finalize())
} }
_ => Err(Error::UnknownAlgorithm("digest", algo.to_string()))?, _ => return Err(Error::UnknownAlgorithm("digest", algo.to_string())),
}; };
Ok(hash) Ok(hash)