Revert changes to gpui2 crate

This commit is contained in:
Marshall Bowers 2023-10-06 15:49:53 -04:00
parent d37785c214
commit 88a6a41c7c
5 changed files with 4 additions and 61 deletions

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() }
}
}