summaryrefslogtreecommitdiffstats
path: root/web/src/widget/text_input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/widget/text_input.rs')
-rw-r--r--web/src/widget/text_input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/widget/text_input.rs b/web/src/widget/text_input.rs
index 04c3b287..d6357512 100644
--- a/web/src/widget/text_input.rs
+++ b/web/src/widget/text_input.rs
@@ -191,7 +191,7 @@ impl State {
/// Creates a new [`State`], representing an unfocused [`TextInput`].
///
/// [`State`]: struct.State.html
- pub const fn new() -> Self {
- Self
+ pub fn new() -> Self {
+ Self::default()
}
}