Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mockall-derive] Fix returning trait object reference for Box<dyn T> not implementing T #380

Merged
merged 1 commit into from May 8, 2022

Conversation

onalante-msft
Copy link

Continuation of #364. Resolves #363.

@onalante-msft onalante-msft force-pushed the box-dyn-fix branch 2 times, most recently from 396ca9d to 05f8efc Compare May 5, 2022 18:25
@onalante-msft
Copy link
Author

@asomers Rebased and incorporated suggestions, should be ready for follow-up review.1

Footnotes

  1. Sorry about the ping.

@asomers
Copy link
Owner

asomers commented May 7, 2022

Looks good! Would you mind squashing the commits?

@onalante-msft
Copy link
Author

Sure, one moment...

* fix `Box<dyn A>: A` required in returning `&dyn A` for asomers#363

* Tweak trait object return test

* Update changelog

* Add return value description for dedynify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

trait A is not implemented for Box<dyn A>
2 participants