Skip to content

Commit

Permalink
Fix wit-smith syntax for static functions (#1113)
Browse files Browse the repository at this point in the history
I accidentally left this out of #1105 which caused fuzzers to break
overnight.
  • Loading branch information
alexcrichton authored Jul 10, 2023
1 parent 2413c71 commit 27f511c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/wit-smith/src/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ impl<'a> InterfaceGenerator<'a> {
parts.push(part);
}
Item::Static => {
let mut part = format!("static %");
let mut part = format!("%");
part.push_str(&gen_unique_name(u, &mut names)?);
part.push_str(": ");
part.push_str(": static ");
self.gen_func_sig(u, &mut part, false)?;
parts.push(part);
}
Expand Down

0 comments on commit 27f511c

Please sign in to comment.