Skip to content

Commit

Permalink
Merge pull request #1622 from fzyzcjy/feat/1548
Browse files Browse the repository at this point in the history
Fix compilation error when using custom error type + rust auto opaque
  • Loading branch information
fzyzcjy authored Jan 6, 2024
2 parents eab8936 + a882a2e commit 289f13e
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 153 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn generate_code_inner_decode(func: &IrFunc) -> String {
let asyncness = if func.rust_async { "async" } else { "sync" };
let maybe_await =if func.rust_async { ".await" } else { "" };
Some(format!(
"let {mutability}api_{name} = api_{name}.rust_auto_opaque_decode_{asyncness}_{mode}(){maybe_await}?;\n",
"let {mutability}api_{name} = api_{name}.rust_auto_opaque_decode_{asyncness}_{mode}(){maybe_await};\n",
name = field.name.rust_style()
))
} else {
Expand Down
Loading

0 comments on commit 289f13e

Please sign in to comment.