Skip to content

Commit acbff2f

Browse files
committed
fmt
1 parent fbaeea5 commit acbff2f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sdk/rust/src/cid.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ pub fn hash_algorithm_to_pallet(algo: HashAlgorithm) -> Result<HashingAlgorithm>
2727
match algo {
2828
HashAlgorithm::Blake2b256 => Ok(HashingAlgorithm::Blake2b256),
2929
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-
},
30+
HashAlgorithm::Sha2_512 =>
31+
Err(Error::UnsupportedHashAlgorithm("SHA2-512 is not supported by the pallet".into())),
3332
HashAlgorithm::Keccak256 => Ok(HashingAlgorithm::Keccak256),
3433
}
3534
}

0 commit comments

Comments
 (0)