Fixed removal of closed projects in randomized test

Max Brunsfeld and Antonio Scandurra created

Co-authored-by: Antonio Scandurra <antonio@zed.dev>

Change summary

crates/collab/src/tests/randomized_integration_tests.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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);
             });
         }