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

Automatically generate Debug impls for mock structs #289

Merged
merged 3 commits into from
Jun 21, 2021
Merged

Conversation

asomers
Copy link
Owner

@asomers asomers commented Jun 20, 2021

Automatically generate Debug impls for mock structs.

Fixes #287

@asomers asomers merged commit 8076cd4 into master Jun 21, 2021
@asomers asomers deleted the autodebug branch June 21, 2021 01:36
@nbigaouette
Copy link
Contributor

I just got hit by a missing Debug on the mock struct:

help: the trait `std::fmt::Debug` is not implemented for `MockMyStruct`

Glad to see this has been added! :D

Do you plan to soon release and updated version of mockall to crates.io?

Thanks!!

@asomers
Copy link
Owner Author

asomers commented Jun 21, 2021

Yes, I think I'll publish a new version within a week.

@asomers
Copy link
Owner Author

asomers commented Jun 27, 2021

@nbigaouette just published v0.10.0.

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.

Automatically implement Debug on mock structs
2 participants