We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbaeea5 commit acbff2fCopy full SHA for acbff2f
sdk/rust/src/cid.rs
@@ -27,9 +27,8 @@ pub fn hash_algorithm_to_pallet(algo: HashAlgorithm) -> Result<HashingAlgorithm>
27
match algo {
28
HashAlgorithm::Blake2b256 => Ok(HashingAlgorithm::Blake2b256),
29
HashAlgorithm::Sha2_256 => Ok(HashingAlgorithm::Sha2_256),
30
- HashAlgorithm::Sha2_512 => {
31
- Err(Error::UnsupportedHashAlgorithm("SHA2-512 is not supported by the pallet".into()))
32
- },
+ HashAlgorithm::Sha2_512 =>
+ Err(Error::UnsupportedHashAlgorithm("SHA2-512 is not supported by the pallet".into())),
33
HashAlgorithm::Keccak256 => Ok(HashingAlgorithm::Keccak256),
34
}
35
0 commit comments