summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-26 11:01:33 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-26 11:01:33 +0200
commit555ee3e9c66010c9a90c3ef55d61fbffd48e669d (patch)
tree0e11497452dbf53332cdf0a2e7f946e2157e2aea /widget
parentf18f08bd617edbf58787ec4f379aa52c0ef292e2 (diff)
downloadiced-555ee3e9c66010c9a90c3ef55d61fbffd48e669d.tar.gz
iced-555ee3e9c66010c9a90c3ef55d61fbffd48e669d.tar.bz2
iced-555ee3e9c66010c9a90c3ef55d61fbffd48e669d.zip
Fix lints for Rust 1.80
Diffstat (limited to 'widget')
-rw-r--r--widget/src/radio.rs2
-rw-r--r--widget/src/slider.rs4
-rw-r--r--widget/src/vertical_slider.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/widget/src/radio.rs b/widget/src/radio.rs
index 536a7483..1b02f8ca 100644
--- a/widget/src/radio.rs
+++ b/widget/src/radio.rs
@@ -105,7 +105,7 @@ where
/// * the label of the [`Radio`] button
/// * the current selected value
/// * a function that will be called when the [`Radio`] is selected. It
- /// receives the value of the radio and must produce a `Message`.
+ /// receives the value of the radio and must produce a `Message`.
pub fn new<F, V>(
label: impl Into<String>,
value: V,
diff --git a/widget/src/slider.rs b/widget/src/slider.rs
index b9419232..e586684a 100644
--- a/widget/src/slider.rs
+++ b/widget/src/slider.rs
@@ -70,8 +70,8 @@ where
/// * an inclusive range of possible values
/// * the current value of the [`Slider`]
/// * a function that will be called when the [`Slider`] is dragged.
- /// It receives the new value of the [`Slider`] and must produce a
- /// `Message`.
+ /// It receives the new value of the [`Slider`] and must produce a
+ /// `Message`.
pub fn new<F>(range: RangeInclusive<T>, value: T, on_change: F) -> Self
where
F: 'a + Fn(T) -> Message,
diff --git a/widget/src/vertical_slider.rs b/widget/src/vertical_slider.rs
index 6185295b..f21b996c 100644
--- a/widget/src/vertical_slider.rs
+++ b/widget/src/vertical_slider.rs
@@ -72,8 +72,8 @@ where
/// * an inclusive range of possible values
/// * the current value of the [`VerticalSlider`]
/// * a function that will be called when the [`VerticalSlider`] is dragged.
- /// It receives the new value of the [`VerticalSlider`] and must produce a
- /// `Message`.
+ /// It receives the new value of the [`VerticalSlider`] and must produce a
+ /// `Message`.
pub fn new<F>(range: RangeInclusive<T>, value: T, on_change: F) -> Self
where
F: 'a + Fn(T) -> Message,