utils (crypto): fix clippy
This commit is contained in:
parent
d074fc58a2
commit
d469d105f1
|
@ -35,7 +35,7 @@ pub fn hasher(algo: &str, input: String) -> Result<String> {
|
|||
encode(hasher.finalize())
|
||||
}
|
||||
|
||||
_ => Err(Error::UnknownAlgorithm("digest", algo.to_string()))?,
|
||||
_ => return Err(Error::UnknownAlgorithm("digest", algo.to_string())),
|
||||
};
|
||||
|
||||
Ok(hash)
|
||||
|
|
Loading…
Reference in New Issue