diff --git a/src/widget/mod.rs b/src/widget/mod.rs index 830ca67a..0e44cb3b 100644 --- a/src/widget/mod.rs +++ b/src/widget/mod.rs @@ -93,22 +93,20 @@ pub mod rectangle_tracker; pub use row::{row, Row}; pub mod row { - pub use iced::widget::Row; + pub type Row<'a, Message> = iced::widget::Row<'a, Message, crate::Renderer>; #[must_use] - pub fn row<'a, Message>() -> Row<'a, Message, crate::Renderer> { + pub fn row<'a, Message>() -> Row<'a, Message> { Row::new() } #[must_use] - pub fn with_capacity<'a, Message>(capacity: usize) -> Row<'a, Message, crate::Renderer> { + pub fn with_capacity<'a, Message>(capacity: usize) -> Row<'a, Message> { Row::with_children(Vec::with_capacity(capacity)) } #[must_use] - pub fn with_children( - children: Vec>, - ) -> Row { + pub fn with_children(children: Vec>) -> Row { Row::with_children(children) } }