# dap: Make \`ProtoConversion::to_proto\` consume \`self\` \(\#47871\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c21b019eaab889ed02ff2acac3b089eb792f3b30

Requested commit: c21b019eaab889ed02ff2acac3b089eb792f3b30

Commit: c21b019eaab889ed02ff2acac3b089eb792f3b30

Tree: 13e9b09177790ed22bb4058651011ca6e961f0c0

Author: tidely

Committer: GitHub

## Message

```
dap: Make `ProtoConversion::to_proto` consume `self` (#47871)

Closes #ISSUE

Make `ProtoConversion::to_proto` consume `self`. We never create more
than one `proto` type out of a single `dap` type, meaning having the
conversation be non-consuming has no benefits, while consuming allows us
to remove a bunch of clones.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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