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

Fix mocking methods when a custom Result type is in-scope #74

Merged
merged 1 commit into from
Nov 16, 2019

Conversation

asomers
Copy link
Owner

@asomers asomers commented Nov 14, 2019

There was a hygiene violation in the proc macro. It would cause
automock and mock to fail anytime a custom Result type was in scope,
even if the mocked method didn't try to use it.

Fixes #73

There was a hygiene violation in the proc macro.  It would cause
automock and mock to fail anytime a custom Result type was in scope,
even if the mocked method didn't try to use it.

Fixes #73
@asomers asomers merged commit 9776635 into master Nov 16, 2019
@asomers asomers deleted the std_result_result branch November 16, 2019 01:57
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.

Can't automock struct when defining own type
1 participant