summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text_input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/text_input.rs')
-rw-r--r--native/src/widget/text_input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index 1d1c32a2..d3c45fba 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -64,11 +64,11 @@ impl<'a, Message> TextInput<'a, Message> {
placeholder: &str,
value: &str,
on_change: F,
- ) -> Self
+ ) -> TextInput<'a, Message>
where
F: 'static + Fn(String) -> Message,
{
- Self {
+ TextInput {
state,
placeholder: String::from(placeholder),
value: Value::new(value),