diff options
author | 2020-03-17 00:51:01 +0100 | |
---|---|---|
committer | 2020-03-17 00:51:01 +0100 | |
commit | 95c8031f3d2800ade28b593c17c138c6d389b1ae (patch) | |
tree | 9a9c9e25ca540ef3192ec8415c23673205be7b5e /native/src/widget/column.rs | |
parent | a146e53eb0f9bf2714f7f2a4227fe445f4905ff1 (diff) | |
download | iced-95c8031f3d2800ade28b593c17c138c6d389b1ae.tar.gz iced-95c8031f3d2800ade28b593c17c138c6d389b1ae.tar.bz2 iced-95c8031f3d2800ade28b593c17c138c6d389b1ae.zip |
Reuse `with_children` to remove some duplication
Diffstat (limited to 'native/src/widget/column.rs')
-rw-r--r-- | native/src/widget/column.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/native/src/widget/column.rs b/native/src/widget/column.rs index b38b1ef1..a7a6f242 100644 --- a/native/src/widget/column.rs +++ b/native/src/widget/column.rs @@ -30,16 +30,7 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> { /// /// [`Column`]: struct.Column.html pub fn new() -> Self { - Column { - spacing: 0, - padding: 0, - width: Length::Shrink, - height: Length::Shrink, - max_width: u32::MAX, - max_height: u32::MAX, - align_items: Align::Start, - children: Vec::new(), - } + Self::with_children(Vec::new()) } /// Creates a [`Column`] with the given elements. |