Remove unnecessary iterator

This commit is contained in:
Marshall Bowers 2023-10-20 16:34:33 -04:00
parent cbdd1d6d6c
commit 7719ed0d6c

View file

@ -520,13 +520,10 @@ impl<S: 'static + Send + Sync> ListDetailsEntry<S> {
.map(|meta| Label::new(meta).color(LabelColor::Muted)), .map(|meta| Label::new(meta).color(LabelColor::Muted)),
) )
.child( .child(
h_stack().gap_1().justify_end().children( h_stack()
self.actions .gap_1()
.take() .justify_end()
.unwrap_or_default() .children(self.actions.take().unwrap_or_default()),
.into_iter()
.map(|action| action),
),
) )
} }
} }