# Don't capture \`Workspace\` handle in \`defer\` when rendering \`Dock\` · gitcafe/zed

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

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

Visibility: public

Requested revision: eee39b4c5c16145943af402531fc0eb0564ca8e4

Requested commit: eee39b4c5c16145943af402531fc0eb0564ca8e4

Commit: eee39b4c5c16145943af402531fc0eb0564ca8e4

Tree: 1759d25212f022f0d98acf4a010a62e028b3c430

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Don't capture `Workspace` handle in `defer` when rendering `Dock`

GPUI already provides a mutable reference to the `Workspace` in the
`defer` callback.

```

## Parents

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

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