summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-17 07:03:22 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-17 07:03:22 +0100
commite640b875900a3833fd38efa195e99b40ec3f6820 (patch)
treed6a26ef79044328133b62463e6fad5afd45b56a3 /core
parente0bdb203f2596a65b6ce8c6fb939f82a6dc24048 (diff)
downloadiced-e640b875900a3833fd38efa195e99b40ec3f6820.tar.gz
iced-e640b875900a3833fd38efa195e99b40ec3f6820.tar.bz2
iced-e640b875900a3833fd38efa195e99b40ec3f6820.zip
Derive `Clone` for `text_input::State`
Diffstat (limited to 'core')
-rw-r--r--core/src/widget/text_input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/widget/text_input.rs b/core/src/widget/text_input.rs
index 450a7cae..16c67954 100644
--- a/core/src/widget/text_input.rs
+++ b/core/src/widget/text_input.rs
@@ -80,7 +80,7 @@ where
}
}
-#[derive(Debug, Default)]
+#[derive(Debug, Default, Clone)]
pub struct State {
pub is_focused: bool,
cursor_position: usize,