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 16, 2024
1 parent 67b0f46 commit 40231a0
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 @@ -130,7 +130,7 @@ impl InterfaceGenerator<'_> {
if let Some(suffix) = self.gen.opts.isyswasfa.clone() {
if func.name == format!("isyswasfa-poll{suffix}") {
self.src.push_str("{ isyswasfa_guest::poll(input) }\n");
} else if let Some(prefix) = func.name.strip_suffix("-isyswasfa") {
} else if let Some(prefix) = func.name.strip_suffix("-isyswasfa-start") {
let sig = FnSig {
async_: true,
..sig.clone()
Expand Down Expand Up @@ -371,7 +371,7 @@ impl InterfaceGenerator<'_> {
self.src.push_str("}\n");

if self.gen.opts.isyswasfa.is_some() {
if let Some(prefix) = func.name.strip_suffix("-isyswasfa") {
if let Some(prefix) = func.name.strip_suffix("-isyswasfa-start") {
sig.async_ = true;
self.src.push_str("#[allow(unused_unsafe, clippy::all)]\n");
let params = self
Expand Down

0 comments on commit 40231a0

Please sign in to comment.