Correct casing on Rust code

This commit is contained in:
Rene Vergara 2024-03-04 11:58:04 -06:00
parent 2ae18463fc
commit 53a5b62b6b
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
1 changed files with 2 additions and 2 deletions

View File

@ -326,8 +326,8 @@ pub extern "C" fn rust_wrapper_bech32decode(
out_len: &mut usize out_len: &mut usize
) { ) {
let input: String = marshall_from_haskell_var(input, input_len, RW); let input: String = marshall_from_haskell_var(input, input_len, RW);
let decodedBytes = bech32::decode(&input); let decoded_bytes = bech32::decode(&input);
match decodedBytes { match decoded_bytes {
Ok((hrp, bytes)) => { Ok((hrp, bytes)) => {
let rd = RawData {hrp: hrp.as_bytes().to_vec(), bytes}; let rd = RawData {hrp: hrp.as_bytes().to_vec(), bytes};
marshall_to_haskell_var(&rd, out, out_len, RW); marshall_to_haskell_var(&rd, out, out_len, RW);