mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 23:30:18 +00:00
fix bool vec
This commit is contained in:
parent
ba7af66ca8
commit
f1cfca6f15
@ -30,7 +30,7 @@ pub(crate) fn generate_vector_ser(
|
||||
let values_ser = match value_ty {
|
||||
ParsedType::Boolean(_) => {
|
||||
quote! {
|
||||
let converted_bool_vector: Vec<u8> = arg.into_iter().map(|v| v as u8).collect::<_>();
|
||||
let converted_bool_vector: Vec<u8> = arg.into_iter().map(|v| *v as u8).collect::<_>();
|
||||
fluence::internal::add_object_to_release(Box::new(converted_bool_vector));
|
||||
(converted_bool_vector.as_ptr() as _, converted_bool_vector.len() as _)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user