Change summary
crates/ui2/src/elements/input.rs | 4 ++--
crates/ui2/src/elements/label.rs | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
Detailed changes
@@ -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,
@@ -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,