summaryrefslogtreecommitdiffstats
path: root/src/widget/progress_bar.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-04 11:09:57 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-04 11:09:57 +0200
commitc583a2174d28878a6b1a31288e80b96fac62e799 (patch)
tree36c80d9a0565980d6bbee62c548c8db142555ba2 /src/widget/progress_bar.rs
parent2c35103035e47485f2fb049f86b3c00feb4b99d2 (diff)
downloadiced-c583a2174d28878a6b1a31288e80b96fac62e799.tar.gz
iced-c583a2174d28878a6b1a31288e80b96fac62e799.tar.bz2
iced-c583a2174d28878a6b1a31288e80b96fac62e799.zip
Improve tour example
Diffstat (limited to 'src/widget/progress_bar.rs')
-rw-r--r--src/widget/progress_bar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/progress_bar.rs b/src/widget/progress_bar.rs
index 645c7277..d4499160 100644
--- a/src/widget/progress_bar.rs
+++ b/src/widget/progress_bar.rs
@@ -47,7 +47,7 @@ impl ProgressBar {
/// Sets the width of the [`ProgressBar`] in pixels.
///
/// [`ProgressBar`]: struct.ProgressBar.html
- pub fn width(mut self, width: u32) -> Self {
+ pub fn width(mut self, width: u16) -> Self {
self.style = self.style.width(width);
self
}