summaryrefslogtreecommitdiffstats
path: root/web/src/widget/slider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/widget/slider.rs')
-rw-r--r--web/src/widget/slider.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/widget/slider.rs b/web/src/widget/slider.rs
index 5b203e07..55848084 100644
--- a/web/src/widget/slider.rs
+++ b/web/src/widget/slider.rs
@@ -147,7 +147,7 @@ impl State {
/// Creates a new [`State`].
///
/// [`State`]: struct.State.html
- pub fn new() -> Self {
+ pub const fn new() -> Self {
Self
}
}