Skip to content

Implement ApplicationHandler for &mut A and Box<A>#3709

Merged
madsmtm merged 5 commits intomasterfrom
madsmtm/applicationhandler-mut
May 29, 2024
Merged

Implement ApplicationHandler for &mut A and Box<A>#3709
madsmtm merged 5 commits intomasterfrom
madsmtm/applicationhandler-mut

Conversation

@madsmtm
Copy link
Copy Markdown
Member

@madsmtm madsmtm commented May 27, 2024

I'm not sure if there was a reason these implementations didn't exist before, but they're nice to have.

A future PR could change the signature of run_app from taking &mut A to just taking A (which, in turn, would allow us to make Drop work better).

  • Added an entry to the changelog module if knowledge of this change could be valuable to users

@madsmtm madsmtm added S - enhancement Wouldn't this be the coolest? S - api Design and usability S - maintenance Repaying technical debt labels May 27, 2024
Copy link
Copy Markdown
Contributor

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can also implement for Box<A>.

@madsmtm
Copy link
Copy Markdown
Member Author

madsmtm commented May 28, 2024

I think we can also implement for Box<A>.

You're right, have done so now.

@madsmtm madsmtm requested a review from notgull May 28, 2024 18:19
@madsmtm madsmtm changed the title Implement ApplicationHandler for &mut A Implement ApplicationHandler for &mut A and Box<A> May 29, 2024
@madsmtm madsmtm merged commit 5d8091f into master May 29, 2024
@madsmtm madsmtm deleted the madsmtm/applicationhandler-mut branch May 29, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S - api Design and usability S - enhancement Wouldn't this be the coolest? S - maintenance Repaying technical debt

Development

Successfully merging this pull request may close these issues.

2 participants