diff --git a/src/widget/settings/item.rs b/src/widget/settings/item.rs index f5adc353..d39e2a73 100644 --- a/src/widget/settings/item.rs +++ b/src/widget/settings/item.rs @@ -5,7 +5,7 @@ use std::borrow::Cow; use crate::{ widget::{column, horizontal_space, row, text, Row}, - Element, Renderer, + Element, }; use derive_setters::Setters; @@ -15,7 +15,7 @@ use derive_setters::Setters; pub fn item<'a, Message: 'static>( title: impl Into> + 'a, widget: impl Into> + 'a, -) -> Row<'a, Message, Renderer> { +) -> Row<'a, Message> { item_row(vec![ text(title).into(), horizontal_space(iced::Length::Fill).into(), @@ -26,7 +26,7 @@ pub fn item<'a, Message: 'static>( /// A settings item aligned in a row #[must_use] #[allow(clippy::module_name_repetitions)] -pub fn item_row(children: Vec>) -> Row { +pub fn item_row(children: Vec>) -> Row { row::with_children(children) .align_items(iced::Alignment::Center) .padding([0, 18]) @@ -59,7 +59,7 @@ pub struct Item<'a, Message> { impl<'a, Message: 'static> Item<'a, Message> { /// Assigns a control to the item. - pub fn control(self, widget: impl Into>) -> Row<'a, Message, Renderer> { + pub fn control(self, widget: impl Into>) -> Row<'a, Message> { let mut contents = Vec::with_capacity(4); if let Some(icon) = self.icon { @@ -87,7 +87,7 @@ impl<'a, Message: 'static> Item<'a, Message> { self, is_checked: bool, message: impl Fn(bool) -> Message + 'static, - ) -> Row<'a, Message, Renderer> { + ) -> Row<'a, Message> { self.control(crate::widget::toggler(None, is_checked, message)) } }