Remove unnecessary iterator
This commit is contained in:
parent
cbdd1d6d6c
commit
7719ed0d6c
1 changed files with 4 additions and 7 deletions
|
@ -520,13 +520,10 @@ impl<S: 'static + Send + Sync> ListDetailsEntry<S> {
|
|||
.map(|meta| Label::new(meta).color(LabelColor::Muted)),
|
||||
)
|
||||
.child(
|
||||
h_stack().gap_1().justify_end().children(
|
||||
self.actions
|
||||
.take()
|
||||
.unwrap_or_default()
|
||||
.into_iter()
|
||||
.map(|action| action),
|
||||
),
|
||||
h_stack()
|
||||
.gap_1()
|
||||
.justify_end()
|
||||
.children(self.actions.take().unwrap_or_default()),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue