Fixed removal of closed projects in randomized test

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-04-07 12:24:59 -07:00
parent aa7918c4b5
commit f519f32ec2

View file

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