Skip to content

Commit

Permalink
codegen: Take &self in destroy() of service types
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-hamester committed Aug 22, 2024
1 parent f20eff3 commit cb34382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Take `&self` instead of `&mut self` in `subscribe_{event}()`, `unsubscribe_{event}()`,
`subscribe_all()` and `unsubscribe_all()` of proxy types.
- Take `&self` instead of `&mut self` in `destroy()` of service types.

## [0.7.0] - 2024-07-25

Expand Down
2 changes: 1 addition & 1 deletion codegen/src/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ impl<'a> RustGenerator<'a> {
genln!(self, " self.inner.client()");
genln!(self, " }}");
genln!(self);
genln!(self, " pub async fn destroy(&mut self) -> Result<(), aldrin::Error> {{");
genln!(self, " pub async fn destroy(&self) -> Result<(), aldrin::Error> {{");
genln!(self, " self.inner.destroy().await");
genln!(self, " }}");
genln!(self);
Expand Down

0 comments on commit cb34382

Please sign in to comment.