# terminal: Make \`rgb_for_index\` take a \`u8\` instead of a \`&u8\` \(\#8726\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 12440d5e0d9e9c8441830a2210b2c98dc100f0a9

Requested commit: 12440d5e0d9e9c8441830a2210b2c98dc100f0a9

Commit: 12440d5e0d9e9c8441830a2210b2c98dc100f0a9

Tree: 5e9228716d1b1cafa2fe6798f97c01e65a02ce98

Author: Marshall Bowers

Committer: GitHub

## Message

```
terminal: Make `rgb_for_index` take a `u8` instead of a `&u8` (#8726)

This PR makes the `rgb_for_index` take a `u8` instead of a `&u8`.

`u8` is `Copy` and is only 1 byte, so there really isn't any reason to
pass a reference to it.

Release Notes:

- N/A
```

## Parents

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

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