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.

assistant2: Remove single-letter variable name (#22618)

Marshall Bowersa49e394e51f1
diff --git a/crates/assistant2/src/active_thread.rs b/crates/assistant2/src/active_thread.rs
index 448a156deaa..c6d432a0a57 100644
--- a/crates/assistant2/src/active_thread.rs
+++ b/crates/assistant2/src/active_thread.rs
@@ -283,12 +283,11 @@ impl ActiveThread {
.when_some(context, |parent, context| {
if !context.is_empty() {
parent.child(
- h_flex()
- .flex_wrap()
- .gap_1()
- .px_1p5()
- .pb_1p5()
- .children(context.iter().map(|c| ContextPill::new(c.clone()))),
+ h_flex().flex_wrap().gap_1().px_1p5().pb_1p5().children(
+ context
+ .iter()
+ .map(|context| ContextPill::new(context.clone())),
+ ),
)
} else {
parent