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.

Fixed removal of closed projects in randomized test

Max Brunsfeldf519f32ec2e3
diff --git a/crates/collab/src/tests/randomized_integration_tests.rs b/crates/collab/src/tests/randomized_integration_tests.rs
index 20309d1a63c..fc491fd7f31 100644
--- a/crates/collab/src/tests/randomized_integration_tests.rs
+++ b/crates/collab/src/tests/randomized_integration_tests.rs
@@ -448,7 +448,7 @@ async fn apply_client_operation(
.unwrap();
cx.update(|_| {
client.remote_projects_mut().remove(ix);
- client.buffers().retain(|project, _| project != project);
+ client.buffers().retain(|p, _| *p != project);
drop(project);
});
}