Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove `Clone` bound for `HighlightedLabel`
Marshall Bowersfa3916d1bf8b
diff --git a/crates/ui2/src/elements/input.rs b/crates/ui2/src/elements/input.rsindex 33647e234f7..dc2a8b8d634 100644--- a/crates/ui2/src/elements/input.rs+++ b/crates/ui2/src/elements/input.rs@@ -122,11 +122,11 @@ mod stories {use super::*;#[derive(Element)]- pub struct InputStory<S: 'static + Send + Sync + Clone> {+ pub struct InputStory<S: 'static + Send + Sync> {state_type: PhantomData<S>,}- impl<S: 'static + Send + Sync + Clone> InputStory<S> {+ impl<S: 'static + Send + Sync> InputStory<S> {pub fn new() -> Self {Self {state_type: PhantomData,diff --git a/crates/ui2/src/elements/label.rs b/crates/ui2/src/elements/label.rsindex cee964df12a..5278404d2bf 100644--- a/crates/ui2/src/elements/label.rs+++ b/crates/ui2/src/elements/label.rs@@ -107,8 +107,8 @@ impl<S: 'static + Send + Sync> Label<S> {}}-#[derive(Element, Clone)]-pub struct HighlightedLabel<S: 'static + Send + Sync + Clone> {+#[derive(Element)]+pub struct HighlightedLabel<S: 'static + Send + Sync> {state_type: PhantomData<S>,label: SharedString,color: LabelColor,@@ -116,7 +116,7 @@ pub struct HighlightedLabel<S: 'static + Send + Sync + Clone> {strikethrough: bool,}-impl<S: 'static + Send + Sync + Clone> HighlightedLabel<S> {+impl<S: 'static + Send + Sync> HighlightedLabel<S> {pub fn new(label: impl Into<SharedString>, highlight_indices: Vec<usize>) -> Self {Self {state_type: PhantomData,@@ -214,11 +214,11 @@ mod stories {use super::*;#[derive(Element)]- pub struct LabelStory<S: 'static + Send + Sync + Clone> {+ pub struct LabelStory<S: 'static + Send + Sync> {state_type: PhantomData<S>,}- impl<S: 'static + Send + Sync + Clone> LabelStory<S> {+ impl<S: 'static + Send + Sync> LabelStory<S> {pub fn new() -> Self {Self {state_type: PhantomData,