diff --git a/utils/src/crypto/hash.rs b/utils/src/crypto/hash.rs index 257483a..eeb0ca3 100644 --- a/utils/src/crypto/hash.rs +++ b/utils/src/crypto/hash.rs @@ -35,7 +35,7 @@ pub fn hasher(algo: &str, input: String) -> Result { encode(hasher.finalize()) } - _ => Err(Error::UnknownAlgorithm("digest", algo.to_string()))?, + _ => return Err(Error::UnknownAlgorithm("digest", algo.to_string())), }; Ok(hash)