Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix stack overflow

Marshall Bowers171db00f6ef0
diff --git a/crates/ui2/src/elements/button.rs b/crates/ui2/src/elements/button.rs
index 34e5636dc7e..c3413399cdd 100644
--- a/crates/ui2/src/elements/button.rs
+++ b/crates/ui2/src/elements/button.rs
@@ -129,7 +129,7 @@ impl<S: 'static + Send + Sync> Button<S> {
if self.disabled {
LabelColor::Disabled
} else {
- self.label_color()
+ Default::default()
}
}
@@ -137,7 +137,7 @@ impl<S: 'static + Send + Sync> Button<S> {
if self.disabled {
IconColor::Disabled
} else {
- self.icon_color()
+ Default::default()
}
}