# gpui: Reduce manual shifting & other minor improvements \(\#34407\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d1abba0d336b18de77906c1e95180c4c88170faa

Requested commit: d1abba0d336b18de77906c1e95180c4c88170faa

Commit: d1abba0d336b18de77906c1e95180c4c88170faa

Tree: 41294ef627d2cdbc5545ce61bdcf57f5f590788b

Author: tidely

Committer: GitHub

## Message

```
gpui: Reduce manual shifting & other minor improvements (#34407)

Minor cleanup in gpui.

- Reduce manual shifting by using `u32::to_be_bytes`
- Remove eager `Vec` allocation when listing registered actions
- Remove unnecessary return statements
- Replace manual `if let Some(_)` with `.as_deref_mut()`

Release Notes:

- N/A
```

## Parents

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

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