Skip to content

fix(hyperlight-component-util): emit_hl_marshal_value function to use alloc::vec! instead of alloc::vec::vec! #436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: hyperlight-component-macro
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hyperlight_component_util/src/hl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ pub fn emit_hl_marshal_toplevel_value(
pub fn emit_hl_marshal_value(s: &mut State, id: Ident, vt: &Value) -> TokenStream {
match vt {
Value::Bool => quote! {
alloc::vec::vec![if #id { 1u8 } else { 0u8 }]
alloc::vec![if #id { 1u8 } else { 0u8 }]
},
Value::S(_) | Value::U(_) | Value::F(_) => {
let (tid, _) = rtypes::numeric_rtype(vt);
Expand Down