diff options
author | 2022-12-20 11:31:25 +0100 | |
---|---|---|
committer | 2022-12-20 11:31:25 +0100 | |
commit | 6bb01b727611b83592f96b2b89371a12e7ce54d8 (patch) | |
tree | c75ba7d21b0bec1f5000b6e4ababff923d09387c /native/src/widget/progress_bar.rs | |
parent | e0c728c62c6fd9496de1d442e7476e24fc5e9023 (diff) | |
download | iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.tar.gz iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.tar.bz2 iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.zip |
Fix `clippy` lints for Rust 1.66
Diffstat (limited to 'native/src/widget/progress_bar.rs')
-rw-r--r-- | native/src/widget/progress_bar.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/progress_bar.rs b/native/src/widget/progress_bar.rs index f059026f..7d5d5be5 100644 --- a/native/src/widget/progress_bar.rs +++ b/native/src/widget/progress_bar.rs @@ -47,7 +47,7 @@ where /// * the current value of the [`ProgressBar`] pub fn new(range: RangeInclusive<f32>, value: f32) -> Self { ProgressBar { - value: value.max(*range.start()).min(*range.end()), + value: value.clamp(*range.start(), *range.end()), range, width: Length::Fill, height: None, |