Skip to content

Commit

Permalink
fix: skip the assembler registration for the already registered module
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Nov 28, 2024
1 parent c7bdec8 commit e86c402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codegen/masm/src/masm/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl Program {

// Assemble library
for module in self.library.modules.iter() {
if lib_modules.contains(&module.id.to_string()) {
if lib_modules.contains(&module.id.as_str().to_string()) {
log::warn!(
"module '{}' is already registered with the assembler as library's module, \
skipping",
Expand Down
2 changes: 1 addition & 1 deletion frontend-wasm/src/component/translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl<'a, 'data> ComponentTranslator<'a, 'data> {
dbg!(name);
// The inline export does no have an interface name
let interface = interface.unwrap_or_default();
dbg!(&interface);
// dbg!(&interface);
let export_name = InterfaceFunctionIdent::from_full(interface, name.clone());
let export = self.build_export_lifted_function(func, ty, options)?;
component_builder.add_export(export_name, export);
Expand Down

0 comments on commit e86c402

Please sign in to comment.