Skip to content

armgit / zed

Public Imported from GitHub
0

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 `Input`

Marshall Bowers3ac7ef90efed
diff --git a/crates/ui2/src/elements/input.rs b/crates/ui2/src/elements/input.rs
index 19c51c1ec0b..33647e234f7 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<S: 'static + Send + Sync + Clone> {
+pub struct Input<S: 'static + Send + Sync> {
state_type: PhantomData<S>,
placeholder: SharedString,
value: String,
@@ -22,7 +22,7 @@ pub struct Input<S: 'static + Send + Sync + Clone> {
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 {
Self {
state_type: PhantomData,