Skip to content

Commit

Permalink
build: parser: Add vector conversion based on inner structure
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin committed May 2, 2024
1 parent 5bbfbf5 commit 041e28f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ impl PayloadType {
PayloadType::I16 => quote! {i16},
PayloadType::I32 => quote! {i32},
PayloadType::F32 => quote! {f32},
PayloadType::VECTOR(_vector) => panic!("Can't convert vector to rust."),
PayloadType::VECTOR(vector) => {
let data_type = vector.data_type.to_rust();
quote! {Vec<#data_type>}
}
}
}

Expand Down

0 comments on commit 041e28f

Please sign in to comment.