diff options
Diffstat (limited to 'web/src/widget/button.rs')
-rw-r--r-- | web/src/widget/button.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/widget/button.rs b/web/src/widget/button.rs index 13b47077..889c0ab1 100644 --- a/web/src/widget/button.rs +++ b/web/src/widget/button.rs @@ -113,8 +113,8 @@ impl State { /// Creates a new [`State`]. /// /// [`State`]: struct.State.html - pub const fn new() -> State { - State + pub fn new() -> State { + State::default() } } |