Skip to content

Commit

Permalink
fix: minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Aug 6, 2022
1 parent b3ae4c5 commit 78a967a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions cpp/include/mun/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ namespace mun {
* on a moved `Type` will result in an assertion.
*/
class Type {
friend class StructType;

public:
/**
* @brief Constructs type information from an instantiated `MunType`.
Expand Down
6 changes: 3 additions & 3 deletions crates/mun_runtime/src/assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl Assembly {
})
.collect::<Result<Vec<_>, _>>()
.with_context(|| {
format!("failed to link function '{}' b", fn_prototype.name())
format!("failed to link function '{}'", fn_prototype.name())
})?;

// Get the return type info
Expand All @@ -142,7 +142,7 @@ impl Assembly {
)
})
.with_context(|| {
format!("failed to link function '{}' c", fn_prototype.name())
format!("failed to link function '{}'", fn_prototype.name())
})?;

// Ensure that the function is in the runtime dispatch table
Expand All @@ -166,7 +166,7 @@ impl Assembly {
return Err(anyhow!("a function with the same name does exist, but the signatures do not match.\nExpected:\n\tfn {fn_name}({expected}) -> {}\n\nFound:\n\tfn {fn_name}({found}) -> {}",
fn_proto_ret_type_info.name(),
existing_fn_def.prototype.signature.return_type.name()))
.with_context(|| format!("failed to link function '{}' a", fn_prototype.name()));
.with_context(|| format!("failed to link function '{}'", fn_prototype.name()));
}

*dispatch_ptr = existing_fn_def.fn_ptr;
Expand Down

0 comments on commit 78a967a

Please sign in to comment.