From f519f32ec2e3b1f7088157eccdb43b94f878e94c Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 7 Apr 2023 12:24:59 -0700 Subject: [PATCH] Fixed removal of closed projects in randomized test Co-authored-by: Antonio Scandurra --- crates/collab/src/tests/randomized_integration_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/collab/src/tests/randomized_integration_tests.rs b/crates/collab/src/tests/randomized_integration_tests.rs index 20309d1a63..fc491fd7f3 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); }); }