From 4e14730c59a6e580506e3684b9702e6bfbc73c56 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 9 Jul 2023 00:41:32 -0700 Subject: [PATCH] Fix wit-smith syntax for static functions I accidentally left this out of #1105 which caused fuzzers to break overnight. --- crates/wit-smith/src/generate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wit-smith/src/generate.rs b/crates/wit-smith/src/generate.rs index 673e94bfa6..ac94651b3c 100644 --- a/crates/wit-smith/src/generate.rs +++ b/crates/wit-smith/src/generate.rs @@ -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); }