Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix panic in wasm extensions (#17922)
Conrad Irwin1285504b3e85
diff --git a/crates/extension/src/wasm_host/wit/since_v0_1_0.rs b/crates/extension/src/wasm_host/wit/since_v0_1_0.rsindex 88d860391a4..50547b6371c 100644--- a/crates/extension/src/wasm_host/wit/since_v0_1_0.rs+++ b/crates/extension/src/wasm_host/wit/since_v0_1_0.rs@@ -55,16 +55,7 @@ pub type ExtensionHttpResponseStream = Arc<Mutex<::http_client::Response<AsyncBopub fn linker() -> &'static Linker<WasmState> {static LINKER: OnceLock<Linker<WasmState>> = OnceLock::new();- LINKER.get_or_init(|| {- super::new_linker(|linker, f| {- Extension::add_to_linker(linker, f)?;- latest::zed::extension::github::add_to_linker(linker, f)?;- latest::zed::extension::nodejs::add_to_linker(linker, f)?;- latest::zed::extension::platform::add_to_linker(linker, f)?;- latest::zed::extension::slash_command::add_to_linker(linker, f)?;- Ok(())- })- })+ LINKER.get_or_init(|| super::new_linker(Extension::add_to_linker))}impl From<Command> for latest::Command {