From 6cd0bcc5783f4096480a149fa649057ed93c05fd Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 21 Nov 2023 10:58:52 -0500 Subject: [PATCH] Fix panic when opening settings in zed2 (#3375) This PR fixes a panic that occurs when opening the settings in zed2. We store the `ThemeRegistry` as a global without wrapping it in an `Arc`, so we need to retrieve it the same way. Release Notes: - N/A --- crates/theme2/src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/theme2/src/settings.rs b/crates/theme2/src/settings.rs index 01951f2ed0adaef94933e6169f85a74a102201a4..15b578d4b0e10855d0368ce9d31167847ae8944b 100644 --- a/crates/theme2/src/settings.rs +++ b/crates/theme2/src/settings.rs @@ -184,7 +184,7 @@ impl settings::Settings for ThemeSettings { ) -> schemars::schema::RootSchema { let mut root_schema = generator.root_schema_for::(); let theme_names = cx - .global::>() + .global::() .list_names(params.staff_mode) .map(|theme_name| Value::String(theme_name.to_string())) .collect();