From c583a2174d28878a6b1a31288e80b96fac62e799 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 4 Sep 2019 11:09:57 +0200 Subject: Improve tour example --- src/widget/slider.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widget/slider.rs') 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 } -- cgit