Skip to content

Commit 27f511c

Browse files
authored
Fix wit-smith syntax for static functions (#1113)
I accidentally left this out of #1105 which caused fuzzers to break overnight.
1 parent 2413c71 commit 27f511c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/wit-smith/src/generate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@ impl<'a> InterfaceGenerator<'a> {
514514
parts.push(part);
515515
}
516516
Item::Static => {
517-
let mut part = format!("static %");
517+
let mut part = format!("%");
518518
part.push_str(&gen_unique_name(u, &mut names)?);
519-
part.push_str(": ");
519+
part.push_str(": static ");
520520
self.gen_func_sig(u, &mut part, false)?;
521521
parts.push(part);
522522
}

0 commit comments

Comments
 (0)