Skip to content

Commit

Permalink
Add into to the generated code for async fns
Browse files Browse the repository at this point in the history
  • Loading branch information
MOZGIII committed Apr 10, 2024
1 parent 7d0b11c commit 5225784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/backend/src/codegen.rs
Expand Up @@ -1267,9 +1267,9 @@ impl TryToTokens for ast::ImportFunction {
).await
};
convert_ret = if self.catch {
quote! { Ok(#future?) }
quote! { Ok(#future?.into()) }
} else {
quote! { #future.expect("unexpected exception") }
quote! { #future.expect("unexpected exception").into() }
};
} else {
abi_ret = quote! {
Expand Down

0 comments on commit 5225784

Please sign in to comment.