summaryrefslogtreecommitdiffstats
path: root/widget/src/row.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/row.rs')
-rw-r--r--widget/src/row.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/widget/src/row.rs b/widget/src/row.rs
index bcbe9267..90fd2926 100644
--- a/widget/src/row.rs
+++ b/widget/src/row.rs
@@ -39,11 +39,9 @@ where
/// Creates a [`Row`] with the given elements.
pub fn with_children(
- children: impl Iterator<Item = Element<'a, Message, Renderer>>,
+ children: impl IntoIterator<Item = Element<'a, Message, Renderer>>,
) -> Self {
- children
- .into_iter()
- .fold(Self::new(), |column, element| column.push(element))
+ children.into_iter().fold(Self::new(), Self::push)
}
/// Sets the horizontal spacing _between_ elements.