From 3ac7ef90efed06929e1b87592f8d6d18d0ed7f32 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 19 Oct 2023 16:32:48 -0400 Subject: [PATCH] Remove `Clone` bound for `Input` --- crates/ui2/src/elements/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui2/src/elements/input.rs b/crates/ui2/src/elements/input.rs index 19c51c1ec0b513e84a447825a30cc131dbf77df7..33647e234f71ba2e4f32e41919032b69fbe4c3fd 100644 --- a/crates/ui2/src/elements/input.rs +++ b/crates/ui2/src/elements/input.rs @@ -12,7 +12,7 @@ pub enum InputVariant { } #[derive(Element)] -pub struct Input { +pub struct Input { state_type: PhantomData, placeholder: SharedString, value: String, @@ -22,7 +22,7 @@ pub struct Input { is_active: bool, } -impl Input { +impl Input { pub fn new(placeholder: impl Into) -> Self { Self { state_type: PhantomData,