From 555ee3e9c66010c9a90c3ef55d61fbffd48e669d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 26 Jul 2024 11:01:33 +0200 Subject: Fix lints for Rust 1.80 --- widget/src/radio.rs | 2 +- widget/src/slider.rs | 4 ++-- widget/src/vertical_slider.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'widget/src') 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( label: impl Into, 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(range: RangeInclusive, 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(range: RangeInclusive, value: T, on_change: F) -> Self where F: 'a + Fn(T) -> Message, -- cgit