# Improve actions macros \(\#3292\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ca3341f0660b76cf14579a5a14a3d54f948b80fc

Requested commit: ca3341f0660b76cf14579a5a14a3d54f948b80fc

Commit: ca3341f0660b76cf14579a5a14a3d54f948b80fc

Tree: b90a33e27d13754b65c432be9896c2de84ad9134

Author: Mikayla Maki

Committer: GitHub

## Message

```
Improve actions macros (#3292)

- `actions!` now uses `#[action]` on each struct to reduce duplication.
- The `#[action]` macro now works on unit structs.
- Renamed `menu::unused` to `menu::init` and added more explanation in
comments.

Release Notes:

- N/A
```

## Parents

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

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

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