Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove unnecessary `map`

Marshall Bowers3654dd8da011
diff --git a/crates/ui2/src/components/list.rs b/crates/ui2/src/components/list.rs
index 57143e1f0c4..5c42975b17c 100644
--- a/crates/ui2/src/components/list.rs
+++ b/crates/ui2/src/components/list.rs
@@ -401,7 +401,7 @@ impl List {
v_stack()
.w_full()
.py_1()
- .children(self.header.map(|header| header))
+ .children(self.header)
.child(list_content)
}
}