# Don't pass \`&mut Workspace\` when closing items in a \`Pane\` · gitcafe/zed

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

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

Visibility: public

Requested revision: 02066afb0e801f8226f8a155682bf60706286e79

Requested commit: 02066afb0e801f8226f8a155682bf60706286e79

Commit: 02066afb0e801f8226f8a155682bf60706286e79

Tree: 43283d9336ee4af894109d01448143ee6680c794

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Don't pass `&mut Workspace` when closing items in a `Pane`

This allows closing items via actions even in the `TerminalPanel`
where the `Pane` is not directly owned by a `Workspace`.

```

## Parents

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

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