# agent_ui: Remove unnecessary Arc allocation \(\#45172\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/df48294caad7dd14600cc0bf27dd1b9e79814539)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: df48294caad7dd14600cc0bf27dd1b9e79814539

Requested commit: df48294caad7dd14600cc0bf27dd1b9e79814539

Commit: df48294caad7dd14600cc0bf27dd1b9e79814539

Tree: 31c4d3c2c0c8afcaad5b453c92628dda704bb166

Author: Oleksii Orlenko

Committer: GitHub

## Message

```
agent_ui: Remove unnecessary Arc allocation (#45172)

Follow up to https://github.com/zed-industries/zed/pull/44297.

Initial implementation in ce884443f1c38ca8da9edf9fbbb8e7fd579452cb used
`Arc` to store the reference to the hash map inside the iterator while
keeping the lifetime static. The code was later simplified in
5151b22e2ea37fb457cf4f88b88fe4f315306074 to build the list eagerly but
the Arc was forgotten, although it became unnecessary.

cc @bennetbo

Release Notes:

- N/A
```

## Parents

- [cdc5cc348f2d61fdcef8eb69bdde101d5e041156](https://git.cafe/gitcafe/zed/commit/cdc5cc348f2d61fdcef8eb69bdde101d5e041156?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/df48294caad7dd14600cc0bf27dd1b9e79814539?format=markdown)
