Remove Clone bound for Label

This commit is contained in:
Marshall Bowers 2023-10-19 16:31:24 -04:00
parent d91b423a45
commit 4050bf43c4
3 changed files with 30 additions and 32 deletions

View file

@ -48,8 +48,8 @@ pub enum LineHeightStyle {
UILabel,
}
#[derive(Element, Clone)]
pub struct Label<S: 'static + Send + Sync + Clone> {
#[derive(Element)]
pub struct Label<S: 'static + Send + Sync> {
state_type: PhantomData<S>,
label: SharedString,
line_height_style: LineHeightStyle,
@ -57,7 +57,7 @@ pub struct Label<S: 'static + Send + Sync + Clone> {
strikethrough: bool,
}
impl<S: 'static + Send + Sync + Clone> Label<S> {
impl<S: 'static + Send + Sync> Label<S> {
pub fn new(label: impl Into<SharedString>) -> Self {
Self {
state_type: PhantomData,