# Switch from associated type to generic on EventEmitter trait \(\#3281\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e2130ca444a6b900be2d855e0089369559256313

Requested commit: e2130ca444a6b900be2d855e0089369559256313

Commit: e2130ca444a6b900be2d855e0089369559256313

Tree: 30a2b3cbcbb8fac6daa0b06ba2c4c6a3f304bb6b

Author: Mikayla Maki

Committer: GitHub

## Message

```
Switch from associated type to generic on EventEmitter trait (#3281)

This removes a lot of ad-hoc event translation code in the workspace and
replaces it with a GPUI feature and trait bounds.

TODO:
- [x] Proof out idea
- [x] Convert the workspace
- [x] Convert the rest of the app

Release Notes:

- N/A
```

## Parents

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

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

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