Revert changes to gpui2 crate

This commit is contained in:
Marshall Bowers
2023-10-07 10:50:50 -04:00
parent f6a4151f60
commit a4bde421db
5 changed files with 4 additions and 61 deletions
+2 -12
View File
@@ -12,21 +12,11 @@ use parking_lot::Mutex;
use std::sync::Arc;
use util::arc_cow::ArcCow;
impl<V: 'static> IntoElement<V> for ArcCow<'static, str> {
impl<V: 'static, S: Into<ArcCow<'static, str>>> IntoElement<V> for S {
type Element = Text;
fn into_element(self) -> Self::Element {
Text { text: self }
}
}
impl<V: 'static> IntoElement<V> for &'static str {
type Element = Text;
fn into_element(self) -> Self::Element {
Text {
text: ArcCow::from(self),
}
Text { text: self.into() }
}
}