# gpui: Simplify u8 to u32 conversion \(\#32099\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 738cfdff84e666c4d8a18ac8a51e6de5a6266a8d

Requested commit: 738cfdff84e666c4d8a18ac8a51e6de5a6266a8d

Commit: 738cfdff84e666c4d8a18ac8a51e6de5a6266a8d

Tree: d21955f8dca3658a19da9e41b6f00b056e24fb21

Author: tidely

Committer: GitHub

## Message

```
gpui: Simplify u8 to u32 conversion (#32099)

Removes an allocation when converting four u8 into a u32.
Makes some functions const compatible.

Release Notes:

- N/A
```

## Parents

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

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