# Simplify inlay map data \(\#2683\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 91a94d299e28abdb51cd071cbf6a290c9c4d87b4

Requested commit: 91a94d299e28abdb51cd071cbf6a290c9c4d87b4

Commit: 91a94d299e28abdb51cd071cbf6a290c9c4d87b4

Tree: e5e85cadb85d82fa49d5d26d03844db17943e0aa

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Simplify inlay map data (#2683)

Current logic does not need to access inlays by id in O(1), future
dynamic hints would need to know which hint they hover at, but that will
be done using binary search over the position's anchor we hover on;
nothing else seems to need this HashMap in the near future.

Because of that removal, no need to store `InlayId` apart from the
`Inlay`, hence remove the `InlayProperties` struct entirely.
This allows to eliminate a few generics along the way.

Release Notes:

- N/A
```

## Parents

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

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

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