Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add From<&str> for Hsla
Nate Butlere0cb95b33444
diff --git a/crates/gpui2/src/color.rs b/crates/gpui2/src/color.rsindex db072594760..44b084e65f0 100644--- a/crates/gpui2/src/color.rs+++ b/crates/gpui2/src/color.rs@@ -233,6 +233,12 @@ impl Hsla {}}+impl From<&str> for Hsla {+ fn from(s: &str) -> Self {+ Rgba::try_from(s).unwrap().into()+ }+}+// impl From<Hsla> for Rgba {// fn from(value: Hsla) -> Self {// let h = value.h;