# Make indexing into \`ColorScale\`s safe \(\#3205\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 72d060108d23de34db50efeef51047d47989b42a

Requested commit: 72d060108d23de34db50efeef51047d47989b42a

Commit: 72d060108d23de34db50efeef51047d47989b42a

Tree: 488cd7cf0a6abe65d7b767916f58aa07086ff638

Author: Marshall Bowers

Committer: GitHub

## Message

```
Make indexing into `ColorScale`s safe (#3205)

This PR makes indexing into `ColorScale`s safe by constraining the
`ColorScaleStep`s to a set of known values.

Release Notes:

- N/A
```

## Parents

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

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