From 1285504b3e85a9b64f993ab7540393efdc4a68f0 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 16 Sep 2024 21:35:28 -0600 Subject: [PATCH] Fix panic in wasm extensions (#17922) Release Notes: - N/A Co-authored-by: Peter Tripp --- crates/extension/src/wasm_host/wit/since_v0_1_0.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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.rs index 88d860391a..50547b6371 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 &'static Linker { static LINKER: OnceLock> = 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 for latest::Command {