We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89e48b0 + 5735c6b commit ca4dc58Copy full SHA for ca4dc58
src/main.rs
@@ -234,7 +234,7 @@ pub fn ec_pairing(input_hex_ptr: *const c_char) -> *const c_char {
234
};
235
236
let mut ec_pairing_output_buf = [0u8; 32];
237
- ret_val.to_big_endian(&mut ec_pairing_output_buf);
+ ret_val.to_big_endian(&mut ec_pairing_output_buf).expect("Cannot fail since buf is 32-byte length");
238
let mut ec_pairing_output_str = ec_pairing_output_buf.to_hex();
239
//println!("ec_pairing_output_str: {:?}", ec_pairing_output_str);
240
0 commit comments