Skip to content

Commit c093485

Browse files
committed
testing host_bindgen changes
Signed-off-by: Shailesh Vashishth <shavashishth@gmail.com>
1 parent 5f8f174 commit c093485

File tree

2 files changed

+2
-2
lines changed
  • src
    • hyperlight_component_macro/src
    • hyperlight_component_util/src

2 files changed

+2
-2
lines changed

src/hyperlight_component_macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl Parse for BindgenInputParams {
160160
path = Some(std::path::PathBuf::from(concrete_path.value()));
161161
}
162162
}
163-
if world_name.is_some() && path.is_some() {
163+
if world_name.is_some() && path.is_none() {
164164
return Err(syn::Error::new(
165165
proc_macro2::Span::call_site(),
166166
"If `world_name` is provided in the brace syntax, `path` must also be provided."

src/hyperlight_component_util/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub fn read_wit_type_from_file<R, F: FnMut(String, &etypes::Component) -> R>(
6060
/// Why do so?
6161
/// we can return the token stream as well.
6262
/// it would be better wouldn't it?
63-
/// Addtionally this is causing a race condition.
63+
/// Additionally this is causing a race condition.
6464
pub fn emit_decls(decls: proc_macro2::TokenStream) -> proc_macro2::TokenStream {
6565
if let Ok(dbg_out) = std::env::var("HYPERLIGHT_COMPONENT_MACRO_DEBUG") {
6666
if let Ok(file) = syn::parse2(decls.clone()) {

0 commit comments

Comments
 (0)