Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove unnecessary iterator
Marshall Bowers7719ed0d6c75
diff --git a/crates/ui2/src/components/list.rs b/crates/ui2/src/components/list.rsindex f664bbb547c..fa4ec4fd749 100644--- a/crates/ui2/src/components/list.rs+++ b/crates/ui2/src/components/list.rs@@ -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()),)}}