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

View file

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