Remove Clone
bound for Input
This commit is contained in:
parent
4050bf43c4
commit
3ac7ef90ef
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ pub enum InputVariant {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Element)]
|
#[derive(Element)]
|
||||||
pub struct Input<S: 'static + Send + Sync + Clone> {
|
pub struct Input<S: 'static + Send + Sync> {
|
||||||
state_type: PhantomData<S>,
|
state_type: PhantomData<S>,
|
||||||
placeholder: SharedString,
|
placeholder: SharedString,
|
||||||
value: String,
|
value: String,
|
||||||
|
@ -22,7 +22,7 @@ pub struct Input<S: 'static + Send + Sync + Clone> {
|
||||||
is_active: bool,
|
is_active: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<S: 'static + Send + Sync + Clone> Input<S> {
|
impl<S: 'static + Send + Sync> Input<S> {
|
||||||
pub fn new(placeholder: impl Into<SharedString>) -> Self {
|
pub fn new(placeholder: impl Into<SharedString>) -> Self {
|
||||||
Self {
|
Self {
|
||||||
state_type: PhantomData,
|
state_type: PhantomData,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue