# Remove unneeded \`'static\` lifetimes on \`&str\`s in constants \(\#8698\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ca2cda8d2a550549e46048e4a06d74e60287f835

Requested commit: ca2cda8d2a550549e46048e4a06d74e60287f835

Commit: ca2cda8d2a550549e46048e4a06d74e60287f835

Tree: 8ff9a3588d4c36b7d0bb30bce2998d59d67ffc2b

Author: Marshall Bowers

Committer: GitHub

## Message

```
Remove unneeded `'static` lifetimes on `&str`s in constants (#8698)

This PR removes unneeded `'static` lifetimes on `&str`s stored in
`const` declarations.

This addresses some Clippy lints about
[`redundant_static_lifetimes`](https://rust-lang.github.io/rust-clippy/master/index.html#/redundant_static_lifetimes).

In item-level `const` declarations we can rely on lifetime elision and
use the default `'static` lifetime.

Note that associated constants still require an explicit `'static`
lifetime, as explained in
https://github.com/rust-lang/rust/issues/115010.

Release Notes:

- N/A
```

## Parents

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

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