summaryrefslogtreecommitdiffstats
path: root/widget/src/helpers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/helpers.rs')
-rw-r--r--widget/src/helpers.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs
index 2606826d..b23e3cb9 100644
--- a/widget/src/helpers.rs
+++ b/widget/src/helpers.rs
@@ -340,12 +340,12 @@ where
/// * the current value of the [`ProgressBar`].
///
/// [`ProgressBar`]: crate::ProgressBar
-pub fn progress_bar<Theme>(
+pub fn progress_bar<'a, Theme>(
range: RangeInclusive<f32>,
value: f32,
-) -> ProgressBar<Theme>
+) -> ProgressBar<'a, Theme>
where
- Theme: progress_bar::DefaultStyle,
+ Theme: progress_bar::DefaultStyle + 'a,
{
ProgressBar::new(range, value)
}