# Replace \`lazy_static\!\` with \`OnceLock\` in \`ai\` crate \(\#8647\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0d0ce95eaebf4e708caec8211b06f2a12ccc4c7e

Requested commit: 0d0ce95eaebf4e708caec8211b06f2a12ccc4c7e

Commit: 0d0ce95eaebf4e708caec8211b06f2a12ccc4c7e

Tree: 04b4eec130a7a36fdfc95a688edb303ecb31ffc6

Author: Marshall Bowers

Committer: GitHub

## Message

```
Replace `lazy_static!` with `OnceLock` in `ai` crate (#8647)

This PR replaces a `lazy_static!` usage in the `ai` crate with
`OnceLock` from the standard library.

This allows us to drop the `lazy_static` dependency from this crate.

Release Notes:

- N/A
```

## Parents

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

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