summaryrefslogtreecommitdiffstats
path: root/src/widget/slider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/slider.rs')
-rw-r--r--src/widget/slider.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/slider.rs b/src/widget/slider.rs
index c7adbb51..cdec9ec4 100644
--- a/src/widget/slider.rs
+++ b/src/widget/slider.rs
@@ -93,7 +93,7 @@ impl<'a, Message> Slider<'a, Message> {
/// Sets the width of the [`Slider`] in pixels.
///
/// [`Slider`]: struct.Slider.html
- pub fn width(mut self, width: u32) -> Self {
+ pub fn width(mut self, width: u16) -> Self {
self.style = self.style.width(width);
self
}