Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove duplicate ThemeColor defs
Nate Butler438cf529bb41
diff --git a/crates/ui2/src/components/breadcrumb.rs b/crates/ui2/src/components/breadcrumb.rsindex 4a8a375bf64..7d63425a7c0 100644--- a/crates/ui2/src/components/breadcrumb.rs+++ b/crates/ui2/src/components/breadcrumb.rs@@ -36,7 +36,6 @@ impl<S: 'static + Send + Sync> Breadcrumb<S> {cx: &mut ViewContext<S>,) -> impl Element<ViewState = S> {let color = ThemeColor::new(cx);- let color = ThemeColor::new(cx);let symbols_len = self.symbols.len();diff --git a/crates/ui2/src/components/collab_panel.rs b/crates/ui2/src/components/collab_panel.rsindex 8e3c99a8332..7c53891506b 100644--- a/crates/ui2/src/components/collab_panel.rs+++ b/crates/ui2/src/components/collab_panel.rs@@ -22,7 +22,6 @@ impl<S: 'static + Send + Sync> CollabPanel<S> {fn render(&mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {let color = ThemeColor::new(cx);- let color = ThemeColor::new(cx);v_stack().id(self.id.clone())diff --git a/crates/ui2/src/components/project_panel.rs b/crates/ui2/src/components/project_panel.rsindex d8f5626d180..a6b755d67ec 100644--- a/crates/ui2/src/components/project_panel.rs+++ b/crates/ui2/src/components/project_panel.rs@@ -21,7 +21,6 @@ impl<S: 'static + Send + Sync> ProjectPanel<S> {fn render(&mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {let color = ThemeColor::new(cx);- let color = ThemeColor::new(cx);div().id(self.id.clone())diff --git a/crates/ui2/src/components/title_bar.rs b/crates/ui2/src/components/title_bar.rsindex db33a9de856..487a4717917 100644--- a/crates/ui2/src/components/title_bar.rs+++ b/crates/ui2/src/components/title_bar.rs@@ -88,7 +88,6 @@ impl TitleBar {}fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element<ViewState = Self> {- let color = ThemeColor::new(cx);let color = ThemeColor::new(cx);let settings = user_settings(cx);