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

mock! now requires visibility specifiers for inherent methods. #207

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

asomers
Copy link
Owner

@asomers asomers commented Sep 7, 2020

Previously, it forbade them, and treated the inherent method as having
the same visibility as the struct itself. That was occasionally
problematic, for example when the mock struct was pub but one of its
methods' arguments was not.

Relates to issue #143

Previously, it forbade them, and treated the inherent method as having
the same visibility as the struct itself.  That was occasionally
problematic, for example when the mock struct was pub but one of its
methods' arguments was not.

Relates to issue #143
@asomers asomers merged commit f9efd48 into master Sep 7, 2020
@asomers asomers deleted the mock_pub_methods2 branch September 7, 2020 21:02
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.

1 participant