Skip to content

Commit

Permalink
snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej committed Feb 29, 2024
1 parent 40231a0 commit d6ec27c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rust/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl InterfaceGenerator<'_> {
)
.join(", ");

let isyswasfa = to_rust_ident(&func.item_name());
let isyswasfa = to_rust_ident(&func.item_name().strip_suffix("-start").unwrap());
let isyswasfa = match func.kind {
FunctionKind::Freestanding => isyswasfa,
FunctionKind::Method(_)
Expand All @@ -412,7 +412,7 @@ impl InterfaceGenerator<'_> {
self.src,
"
{{
match {isyswasfa}({params}) {{
match {isyswasfa}_start({params}) {{
Ok(result) => result,
Err(pending) => {isyswasfa_result}(isyswasfa_guest::await_ready(pending).await),
}}
Expand Down

0 comments on commit d6ec27c

Please sign in to comment.