summaryrefslogtreecommitdiffstats
path: root/web/src/widget/scrollable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/widget/scrollable.rs')
-rw-r--r--web/src/widget/scrollable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/widget/scrollable.rs b/web/src/widget/scrollable.rs
index 65766d74..710bb70a 100644
--- a/web/src/widget/scrollable.rs
+++ b/web/src/widget/scrollable.rs
@@ -151,7 +151,7 @@ impl State {
/// Creates a new [`State`] with the scrollbar located at the top.
///
/// [`State`]: struct.State.html
- pub const fn new() -> Self {
- State
+ pub fn new() -> Self {
+ State::default()
}
}