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: Fix broken merge (#27081)

Marshall Bowers394215599acd
diff --git a/crates/assistant2/src/thread.rs b/crates/assistant2/src/thread.rs
index f241b4a571b..8f65a1d1b36 100644
--- a/crates/assistant2/src/thread.rs
+++ b/crates/assistant2/src/thread.rs
@@ -605,7 +605,7 @@ impl Thread {
let task = cx.spawn(async move |thread, cx| {
let stream = model.stream_completion(request, &cx);
let initial_token_usage =
- thread.read_with(&cx, |thread, _cx| thread.cumulative_token_usage.clone());
+ thread.read_with(cx, |thread, _cx| thread.cumulative_token_usage.clone());
let stream_completion = async {
let mut events = stream.await?;
let mut stop_reason = StopReason::EndTurn;