Correct casing on Rust code
This commit is contained in:
parent
2ae18463fc
commit
53a5b62b6b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue